“IE8 拒绝访问jQuery1.10.1.js 行1513”的处理方法
Permission Denied error
现象:
公司业务管理后台,使用IE8访问,出现:
拒绝访问jQuery1.10.1.js行1513
且页面更新、查询按钮点击均无效(未嵌套在iframe中)。
注:对于嵌套在iframe中,同样应用jQuery1.10.1.js的页面,更新、查询按钮操作均有效
问题分析、定位:
由jQuery1.10.1.js与IE8的兼容性问题引起。
解决方案:
jQuery1.10.1.js换为 jquery-1.8.3.js即可
jquery bug:
http://bugs.jquery.com/ticket/13936
其中,有用的建议:
Changed 10 months ago by bigorangemachine@…
IE8 still generates ‘permission‘ denied error when inside an iFrame.
Inside framechild.html
<!--stuff up here--> <script src="assets/js/jquery.1.10.1.js"></script> <!-- ERROR IS GENERATED in IE8-->
Changing line 1513 to sizzles new code will correct this issue
if ( parent && parent.frameElement ) {
to
if ( parent && parent.attachEvent && parent !== parent.top ) {
will fix this issue
We are having the same SCRIPT70 Permission denied issue (in IE only (7,8,9 & 10)).
Note that all of this is done with jQuery 1.9 or 1.10, both give the same problems. After changing it to an old version of jQuery, version 1.4.1, this seems to be fixed, no errors are thrown and the clicks all function propperly...
“IE8 拒绝访问(Permission Denied) jQuery1.10.1.js 行1513”的处理方法,布布扣,bubuko.com