我在IE9中只收到"webpage had expired"
错误。我用2个提交按钮(图像按钮)调用模态对话框。当我点击他们 我可以看到弹出,然后我得到“网页已过期”的消息。jQuery UI模式对话框导致网页出现错误
我的功能:
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”));线? – Rob 2013-03-14 17:57:55
with dlg.dlg.parent()。appendTo(jQuery(“form:first”));我可以使用按钮作为asp:imagebutton(事件)。 – Adleron 2013-03-15 12:08:12
没有更多的代码,很难说出发生了什么。 – Rob 2013-03-15 13:02:23