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

automation server can't create object - new ActiveXObject('InternetExplorer.Applicati

P: 1
Hello!

I am getting the error 'automation server can't create object ' when trying to create new IE instance in jscript :

var ie = new ActiveXObject('InternetExplorer.Application');
ie.visible = true;
ie.navigate2('about:blank');

The site run asp.net 2.0 .

any ideas?

thanks in advance
Jan 17 '07 #1
Share this Question
Share on Google+
2 Replies


acoder
Expert Mod 15k+
P: 16,027
Is it necessary to code like this? Why can you not just open a new window with the page that you require using window.open()?
Jan 17 '07 #2

Expert 100+
P: 1,892
var ie = new ActiveXObject('InternetExplorer.Application');
ie.visible = true;
ie.navigate2('about:blank');
Did you post about this on another site as well? Anyhow your syntax is incorrect.

Expand|Select|Wrap|Line Numbers
  1. function NewIE()
  2. {
  3. var ie = new 
  4. ActiveXObject('InternetExplorer.Application');
  5. ie.visible = true;
  6. ie.navigate('about:blank');
  7. }
I would stick with ACoder's idea though. Any time you run an ActiveX control your users are going to get a pop-up asking them to allow it to run.

HTH,
Aric
Jan 17 '07 #3

Post your reply

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