“var f = new ActiveXObject('Scripting.FileSystemObject');"不使用IE8 [英] "var f = new ActiveXObject('Scripting.FileSystemObject');" not working with IE8
问题描述
我是通过java脚本使用ActiveX控件的新手,
I am very new in using ActiveX controll through java script,
我写 var f = new ActiveXObject('Scripting.FileSystemObject') ;
在我的代码中,它在IE6上工作正常,但最近我将IE6升级到IE8,我现在发现它不能在IE8上工作,返回下面给出的错误:
I write var f = new ActiveXObject('Scripting.FileSystemObject');
in my code and Its was working fine on IE6, but recently I upgraded my IE6 to IE8 and what I found now its not working on IE8, returning the error given below:
网页错误详情
Webpage error details
用户代理:Mozilla / 4.0(兼容; MSIE 8.0; Windows NT 5.1; Trident / 4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8;
.NET4.0C; .NET4.0E; .NET CLR 3.0.4506.2152; .NET CLR 3.5。 30729)
时间戳:2011年8月31日星期三14:23:40 UTC
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8; .NET4.0C; .NET4.0E; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) Timestamp: Wed, 31 Aug 2011 14:23:40 UTC
消息:自动化服务器无法创建对象
行:735
字符:9
代码:0
URI: http:// localhost:8080 /
Message: Automation server can't create object
Line: 735
Char: 9
Code: 0
URI: http://localhost:8080/
qocweb / script / main / MainLetter.js
qocweb/script/main/MainLetter.js
我用Google搜索了一下nd发现IE ActiveX设置中缺少某些内容并解决了这个问题,
但是现在我要求在不使用IE8设置的情况下解决它。
I googled this and found there is something missing in the IE ActiveX setting and got resolved this problem, But now I have a requirement that it should be solved without playing with IE8 setting.
任何人都可以对此有所了解,任何建议都会非常明显......
Can anyone have any idea about this, any suggestion would be really appreciable...
推荐答案
你不能用这个由于安全原因,组件具有默认安全设置。阅读此以获取更多信息。
You can not use this component with default security settings due to security reasons. Read this for more information.
这篇关于“var f = new ActiveXObject('Scripting.FileSystemObject');"不使用IE8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!