【发布时间】:2013-03-14 14:59:40
【问题描述】:
我仅在 IE9 中收到 "webpage had expired" 错误。我正在调用带有 2 个提交按钮(图像按钮)的模式对话框。当我点击它们时
我可以看到弹出窗口,然后我收到“网页已过期”消息。
我的功能:
moreSubscribersQuestions: function () {
var dlg= $("#dialogMoreClients").dialog({
modal: true,
//dialogClass: 'WsErrorMessage'
dialogClass: 'addMoreClientPopUp',
width: 500,
height:400
});
$('.ui-helper-clearfix:after').removeClass();
//$('div.FinishPurchasePopUpBTn').each(function () {
// this.addClass('FinishPurchasePopUpBTn');
//});
dlg.parent().appendTo(jQuery("form:first"));
}
删除dlg.parent().appendTo(jQuery("form:first")); 后问题不再出现。有什么建议么?
【问题讨论】:
-
您可以发布其余的 .aspx 代码吗?你想用 dlg.parent().appendTo(jQuery("form:first"));行吗?
-
with dlg.dlg.parent().appendTo(jQuery("form:first"));我可以将按钮用作 asp:imagebutton (event)。
-
没有更多代码,很难判断发生了什么。
标签: jquery asp.net internet-explorer-9