[英]Error: SCRIPT65535: Invalid calling object line 1 character 1
We have built a Magento Community 1.7.0.1 template that is fully based on jQuery mobile v1.2.0. 我们构建了一个完全基于jQuery mobile v1.2.0的Magento Community 1.7.0.1模板。 It also loads the regular jQuery library version 1.8.2.
它还加载常规的jQuery库版本1.8.2。
Everything works fine in every browser (Chrome, Firefox, Opera, ...) except in Internet Explorer the following error is showing in the console: 在每个浏览器(Chrome,Firefox,Opera,...)中一切正常,除了在Internet Explorer中,控制台中显示以下错误:
SCRIPT65535: Invalid calling object
SCRIPT65535:无效的调用对象
index, line 1 character 1
index,第1行1
We have been searching on how to fix this issue but haven't found any solution. 我们一直在搜索如何解决此问题但尚未找到任何解决方案。 The same error appears on both IE8 and IE9.
IE8和IE9上都出现相同的错误。 We have tried removing all add-ons, accelerators, ... and the issue still persists.
我们已尝试删除所有加载项,加速器......但问题仍然存在。
The following is code is located on line 1: 以下代码位于第1行:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
EDIT1: Weird thing is, if I start up developer tools in IE and under the script tab click on "Start debugging" the error goes way when I refresh the page. 编辑1:奇怪的是,如果我在IE中启动开发人员工具并在脚本选项卡下点击“开始调试”,当我刷新页面时错误就会出现。 When I click on "Stop debugging" and refresh the page, the error still DOES NOT show.
当我点击“停止调试”并刷新页面时,错误仍然没有显示。 Weirdest thing ever...
奇怪的事情......
Has any of you come across this issue already? 你们有没有遇到过这个问题吗? Any idea how I can go around to debug/solve this?
知道如何调试/解决这个问题吗?
After debugging a bit more I found out that the following code was causing the issue: 调试了一下后,我发现以下代码导致了问题:
<body onload="setTimeout(scrollTo, 0, 0, 1)">
Simply remove that and it will work again ;) 只需删除它,它将再次工作;)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.