Internet Explorer cannot open the Internet site,Operation
aborted。
起因是写了个服务器断控件,该控件需要在前端生成一个控制该控件的对象.使用IE6.0和IE7.0都会报这样的错误,换成IE8.0或FIREFOX就可以了.
当时采用直接往客户端注册javascript代码的方式:
<script>
var
jsxxx;
var c;
jsxxx.xxx =
'123';
appendCtrl(jsxxx)
</script>
在这里使用了一个包装过的方法,就是把这个控件append到document.body上去,这时就出现了这个问题.
最后发现只要把这段js代码放到</html>的后面,就能正常运行.
所以推测错误是这样引起的:
控件在生成的过程中,因为js代码的原因,就在body还没有生成完成的时候
(还没有生成</body>),就运行了该段js代码,导致document无法找到完整的body,所以报错.
解决方法:
往前端注册一个函数
<script>
var
jsxxx;
var c;
var xxx = function () {
jsxxx.xxx = '123';
appendCtrl(jsxxx)
}
window.attachEvent('onload',
xxx);
</script>
然后将这个函数附加到window.onload事件中,问题解决.
分享到:
相关推荐
最近在IE6下面时常会发生“Internet Explorer cannot open the Internet site ”错误。
This is required if you want to make use of the latest and greatest features of the WebDriver InternetExplorerDriver. Please make sure that this is available on your $PATH (or %PATH% on Windows) in ...
Internet Explorer 5.5正式版安装程序,适合Windows 98、2000的升级
当您为 Windows 7 安装 Internet Explorer 11 时,安装程序会尝试自动安装某些系统必备组件。如果此安装过程中出现故障,Internet Explorer 将停止安装过程。 在此情况下,为 Windows 7 安装 Internet Explorer 11 ...
OpenExplorer-master eclipse插件 直接打开对应目录 直接打开对应目录
恢复桌面Internet Explorer图标
Microsoft Internet Explorer 4.01 (4.71.1712) [Simpl. Chinese].7z
Internet Explorer已停止工作 win 7 win8
提供如何進行Internet Explorer 8的卸载。
eclipse easyExplorer+OpenExplorer插件 1.eclipse easyExplorer插件方便打开项目所在的资源管理器中的位置。Eclipse4.4以上版本不能使用easyExplorer,采用OpenExplorer。 2.如果想在Ecipse里打开目录,一直用...
eclipse open in explorer 小插件,从硬盘上打开相应文件所在文件夹,很使用的小插件,Myeclipse有,eclipse没有。
Advanced IE (Internet Explorer) Password Recovery is a program to Recover passwords to web sites saved in Microsoft Internet Explorer (in local password list), as well as AutoComplete strings (form ...
Internet Explorer 9.zip
可以浏览Internet Explorer的缓存文件
这个包里面包含OpenExplorer.jar的5个版本,下载后放到eclipse安装目录下的dropins目录下重启eclipse即可。
openexplorer_1.0.0.jar openexplorer_1.0.0.jar eclipse打开文件夹工具
插件 eclipse插件 OpenExplorer 亲测好用,特意分享给大家
一个列表 罗列Internet Explorer 1.0 到7.0所有小版本号
去掉IE提示:internet explorer 已限制此网页运行脚本或Activex控件