访问被拒绝.在IE中的jquery.form.js

我该如何解决这个问题?
IE上的访问被拒绝:( jquery.form.js)

=>   if (io.contentwindow.document.execCommand) {
        try { // #214
            io.contentwindow.document.execCommand('Stop');
        } catch(ignore) {}
    }

解决方法

我今天遇到了同样的问题.

However this issue has been documented

问题是IE9中的代码被破坏了.
来自链接评论者解释了问题:

This happens because of the IE “friendly error messages” “feature”. For HTTP 4xx and 5xx responses IE replaces the content of the IFRAME with its friendly error message and in so doing changes the domain of the frame. When the plugin tries to access the response document it fails due to the same-origin policy,which causes the plugin to treat the request as aborted

由于这种安全限制,IE js解释器在访问io.contentwindow.document时会出现安全异常.

快速修复/破解(如果在try块内调用则移动):

try { // #214
  if (io.contentwindow.document.execCommand) 
   io.contentwindow.document.execCommand('Stop');
} catch (ignore) { }

我在生产中有这个修复,我没有在IE8 / IE9中发现任何负面影响

相关文章

页面搜索关键词突出 // 页面搜索关键词突出 $(function () {...
jQuery实时显示日期、时间 html: <span id=&quot...
jQuery 添加水印 <script src="../../../.....
中文:Sys.WebForms.PageRequestManagerParserErrorExceptio...
1. 用Response.Write方法 代码如下: Response.Write(&q...
Jquery实现按钮点击遮罩加载,处理完后恢复 思路: 1.点击按...