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

Using the ActiveX Object "Excel.Application" from JScript

P: n/a
Hi, I noticed that this particular object is only accessable if the IE
security setting "Initialize and and script ActiveX controls not marked
as safe" is enabled. Does windows maintain this list somewhere? Is it
hard coded, or can you edit it?

Also, is there a way for the script to ask the user if they want to
change the security setting to allow the ActiveX control to be used?

For example, if "Initialize and script ..." is marked Disabled, and you
catch this exception trying to setup the ActiveX object, can the script
tell IE to ask the user to enable the security setting with a dialog
box allowing the user to click "yes" to enable to setting, or "no" to
deny it?

Apr 21 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
UnaCoder said the following on 4/21/2006 12:33 PM:
Hi, I noticed that this particular object is only accessable if the IE
security setting "Initialize and and script ActiveX controls not marked
as safe" is enabled. Does windows maintain this list somewhere? Is it
hard coded, or can you edit it?
What object?

Is there a list? Why would it need to keep a list of unauthorized
ActiveX controls? It would keep a list of allowed ones though.
Also, is there a way for the script to ask the user if they want to
change the security setting to allow the ActiveX control to be used?
Is your name Soren by chance?

But no, the user has told the browser "Don't do this" and you are
wanting to ask them "Hey, you don't want to do this but would you change
that setting and do what you said you didn't want to do to start with?"
For example, if "Initialize and script ..." is marked Disabled, and you
catch this exception trying to setup the ActiveX object, can the script
tell IE to ask the user to enable the security setting with a dialog
box allowing the user to click "yes" to enable to setting, or "no" to
deny it?


Script resetting browser settings? Absolutely *NO*. You can't set
browser settings via script. You aren't allowed to change settings of
the browser via script. Did I mention that you can't change my browser
settings via script?

try{
//try to activate ActiveX
}
catch(e){
//error handling
alert('If you are completely stupid enough, would you give me access to
your computer via my unsafe ActiveX component please?')
}

BTW, did I mention that you can't change browser settings with script?

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Apr 21 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.