views:

339

answers:

1

I want to use javascript to create a textfile, so I used :

This Line of code : var fso = new ActiveXObject("Scripting.FileSystemObject");

Its working properly in IE6 but not in IE8.

Any suggested solution?

+1  A: 

IE8 internet setting is more secure, to it doesn't allow activex objects. If you have to run this, goto Tools->Internet Options-> Security->Custom Level->choose enable or prompt activex..

Deepak
The problem remains because its enabled.
Codeffect
this is the error : Automation server can't create object
Codeffect
try Custom Level -> ActiveX controls and plug-ins -> Initialize and script ActiveX controls not marked as safe for scripting
Eugene
Thanks ,enabling this option made it work.
Codeffect