By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,454 Members | 3,191 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,454 IT Pros & Developers. It's quick & easy.

JS issue: Automation server can't create object

P: 1
I use file system object to open a html file in a text area.
when i write the code like,

Expand|Select|Wrap|Line Numbers
  1. fso = new ActiveXObject("Scripting.FileSystemObject");
  2. f = fso.OpenTextFile(file, ForReading,false,TristateUseDefault);
  3.  
it displays a error like automation server can't create object.
can anyone help me!!
Feb 1 '08 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
This error means that you haven't given enough permissions for the ActiveX to run. So enable ActiveX scripting in your IE browser and the error should go away.
Feb 1 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.