Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net jQuery附加的iFrame IE仅抛出MS Ajax无法解析错误_.net_Jquery_Asp.net Ajax - Fatal编程技术网

.net jQuery附加的iFrame IE仅抛出MS Ajax无法解析错误

.net jQuery附加的iFrame IE仅抛出MS Ajax无法解析错误,.net,jquery,asp.net-ajax,.net,Jquery,Asp.net Ajax,在Aspx页面上,我为jQuery UI对话框设置了以下标记: 我没有iFrame,因为它给了我各种MS Ajax错误。因此,当一个updatePanel被触发时,我会在上面动态地放置一个iFrame: $('#modal_showNewlyGeneratedPasscode').append('<iframe src="Popup.aspx" height="240" width="100%" frameborder="0" scrolling="auto" />'); 在F

在Aspx页面上,我为jQuery UI对话框设置了以下标记:

我没有iFrame,因为它给了我各种MS Ajax错误。因此,当一个updatePanel被触发时,我会在上面动态地放置一个iFrame:

$('#modal_showNewlyGeneratedPasscode').append('<iframe src="Popup.aspx" height="240" width="100%" frameborder="0" scrolling="auto" />');
在FireFox和Chrome上,这很好-iFrame显示在jQuery UI对话框中,但在IE上,它仅引发Ajax异常:Sys.Webforms.Pagerequestmanagerparsererrorexception无法解析从服务器收到的消息

其他主要细节: -Popup.aspx与调用它的页面位于同一个域中,因此跨域脚本不是问题所在。 -上述内容不在任何UpdatePanel内部。 -使用调试器,我发现这个错误发生在Popup.aspx页面的页面加载被命中之前。因此,我怀疑Ajax出错是因为通过jQuery动态插入iFrame。 -我们的处理程序设置如下:

<asp:ScriptManager ID="PageScriptManager" OnAsyncPostBackError="AsyncPostBackError" runat="server">
   <Scripts>
      <asp:ScriptReference Path="../js/AjaxErrorHandler.js" />
   </Scripts>
</asp:ScriptManager>

任何帮助都将不胜感激

感谢所有回应的人。我非常感激。然而,我昨天解决了这个问题


事实证明,我将ASP隐藏字段设置为iFrame HTML的值,IE Ajax安全性不喜欢这样。我只是把它拿出来,它就跑了

我找到了这个链接;这可能有用:
<asp:ScriptManager ID="PageScriptManager" OnAsyncPostBackError="AsyncPostBackError" runat="server">
   <Scripts>
      <asp:ScriptReference Path="../js/AjaxErrorHandler.js" />
   </Scripts>
</asp:ScriptManager>