我正在使用 jquery 1.4.2 版本和 jquery 1.8 ui 版本。当我在 IE8 的情况下打开 jquery 对话框时,它工作正常并且只发送 1 个请求。但是当我用 chrome 和 firefox 或 IE10 尝试这个时,它正在向服务器发送多个请求。请帮忙。
以下是代码详细信息:-
document.getElementById("hyperLinksFrame").src = fileName;
$('#hyperLinksFrame').dialog({
title :'Link',
autoOpen: true,
width: 500,
height: 200,
modal: true,
resizable: true,
autoResize: true,
dialogClass: "ent_blue_iframe",
buttons:{"Close": function(){
$(this).dialog('close');
}},
close: function(ev, ui) {
document.getElementById("hyperLinksFrame").src = "";
document.CICoverPageForm.userAction.value = 'addLinksOnCoverPage';
ajaxSubmit();
$(this).dialog ('destroy');
}
}).width(500).height(200);
<div id="parentHyperLinkDiv" style="display: none;">
<iframe src="" id="hyperLinksFrame"> </iframe>
</div>