SCRIPT70:权限被拒绝 IE9 [英] SCRIPT70: Permission denied IE9

查看:37
本文介绍了SCRIPT70:权限被拒绝 IE9的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 IE-9 上收到奇怪的错误SCRIPT70: Permission denied jquery.js, line 21 character 67".在谷歌上搜索,但除了 CKEditor 上的一个错误之外找不到任何东西.

它显示的位置只包含以下内容:

P=navigator.userAgent,xa=false,Q=[],M,ca=Object.prototype.toString,da=Object.prototype.hasOwnProperty,ea=Array.prototype.push,R=Array.prototype.slice,V=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(typeof a==="string")if((d=Oa.exec(a))&&(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Sa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];

有人遇到过这个错误吗?

*附加信息:*我们打开一个 iframe 并在这个 iframe 中调用一些 javascript 函数.

谢谢.

解决方案

IE9 中的 SCRIPT70 错误最有可能发生在 iframe 调用某些 javascript 时(特别是如果它影响父页面 - 例如父 url 的哈希更改)

检查您的 iframe 的主机/协议/端口号是否匹配.IE9 对主机名非常严格(在我的例子中一直到 www 部分),而 document.domain 似乎没有为此提供解决方法.

在处理多个 iframe 时遇到了这个问题并修复了它,希望这能帮助其他有同样问题的人.

I am getting the strange error "SCRIPT70: Permission denied jquery.js, line 21 character 67" on IE-9. Searched on google but could not find anything except a bug on CKEditor.

Position it showed just contains following:

P=navigator.userAgent,xa=false,Q=[],M,ca=Object.prototype.toString,da=Object.prototype.hasOwnProperty,ea=Array.prototype.push,R=Array.prototype.slice,V=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(typeof a==="string")if((d=Oa.exec(a))&&(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Sa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];

anyone run into this error?

*Additional Info:*We open an iframe and call some javascript functions inside this iframe.

thanks.

解决方案

The SCRIPT70 error in IE9 occurs most likely when your iframe is calling some javascript (especially if it affects the parent page - e.g. hash change of parent url)

Check that your iframe's host/protocol/port number matches. IE9 is exceptionally strict about the host name(down to the www portion in my case) and document.domain did not seem to provide a workaround for that.

Encountered this issue and fixed it while dealing with multiple iframes, hope this helps others with the same issue.

这篇关于SCRIPT70:权限被拒绝 IE9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆