在你的召回职能范围内,你又创造了另一个功能,但你却没有这样做。 它被制造和抛弃。 如果你取消最中层的职能,我会认为你的工作负荷更好:
parent.$.fallr( hide , function(){
$( #hidden ).load(
admin/getcontent.php ,
{ pageID : "<? echo $_REQUEST[ pageID ]; ?>" }
);
});
可能也未能解决 que问题。 不能确定它是否能够适当制定这种编码。 但是,如果你将其放在数据参数上,它就应当这样做。 见上文。
因此,我们现在可以更清晰地解释,立即取消额外职能和争.(后者可能做任何事情的罚款)。
With the current code you re asking the #hidden div on the dialog to load content. But there is no #hidden div on the dialog, it s on the parent. Prefixing with parent. would fix that, but we also have another issue. We re telling the dialog to refresh the div as soon as the dialog loads. That s not what we want. We want it to refresh when we re closing the dialog, right? So moving it into the fallr callback should fix that. And that should run in the context of the parent, so no parent. prefix required.
$(document).ready(function() {
parent.$.fallr( hide , function(){
$( #hidden ).load( getcontent.php );
});
});
但是,这比我们以前多或少造成了问题,而现在的情况并非如此。
因此,对我来说,问题是,你试图与孩子的父母做事。 我认为,父母应当做事。 因此,如果诊断书准备关闭,它就应当把一项功能传给父母,以关闭诊断书并更新其功能:
//From an event on the dialog
parent.closeDialogAndRefresh();
//On the parent define it
function closeDialogAndRefresh() {
$.fallr( hide );
$( #hidden ).load( getcontent.php );
}
如果做不到工作的话。 开始一个时间,在50万ms之后或像50万这样的东西之后,将叫近DialogAndrefresh。
The real problem here I think is that you re using IFrames instead of floating divs from some decent UI-framework. Hope you ll get where you re going though.