0
我:的fancybox弹出的页面不是IFRAME模式开启第二次
$(".fancybox-href").click(function() {
$.fancybox({
'title': this.href,
'width': 800,
'height': 600,
'href': this.href,
'type': 'iframe'
});
return false;
});
在我的文档准备部分;
和我有弹出功能:
function PopupOnClose(navigateObject, performCallbackTo) {
$.fancybox({
'title': navigateObject.href,
'width': 800,
'height': 600,
'href': navigateObject.href,
'type': 'iframe',
onClosed: function() {
if (performCallbackTo != null) {
eval(performCallbackTo + ".PerformCallback()");
}
}
});
return false;
}
和我扳机连杆我有:
<a id="my-popup" class="fancybox-href" onclick="PopupOnClose(this,'DxCallbackMyAspXCallBackPanel')" href="/My-PopUp-Page.aspx" ></a>
,我的问题是,也许如你预期:
Fancybox不会第二次打开。当我点击第一次fancybox出现,但它不第二次启动:
其实当我第二次点击,它等待和fancybox模式窗口出现很短的时间,但之后,浏览器是直接重定向到“My-PopUp-Page.aspx”页面。
请帮忙。
谢谢。
P.S:PerformCallback是一个devexpress事件,我指定的问题与它是独立的。这个过程运行良好。
真的不明白,为什么你想火的fancybox与在同一时间两种不同的方法。 – JFK 2012-01-09 22:26:21
Bacuse我不知道如何传递一个参数,如“函数PopupOnClose(navigateObject,performCallbackTo){”函数在第一个设置块上的签名? :$ – DortGen 2012-01-10 14:22:49