473,425 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,425 software developers and data experts.

Using the ActiveX Object "Excel.Application" from JScript

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
1 6797
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jerry O | last post by:
Hi , I have my asp successfully creating excel file viewable through IE using the header: Response.ContentType = "application/vnd.ms-excel" If the user does not have excel installed they...
3
by: John | last post by:
Is there a way to code the button that's available in the query window--microsoft excel icon that exports to excel. I know transferspreadsheet will do this---but I want the query, which is in a...
5
by: KC | last post by:
Hi, I have code similar to this.. Dim xlApp As Object xlApp = CreateObject("Excel.Application", "\\MyServer") The call is from a asp.net (Intranet) application. \\Myserver is a network...
1
by: Michael Twua | last post by:
In asp.net with vb.net,I can't create a excel object,such as excel.application,excel.workBook,excel.workSheet. It displayed that "System.UnauthorizedAccessException Refuse Access". I have import...
2
by: CVerma | last post by:
I'm using an html input control (System.web.UI.HTMLControls.HTMLInputFile) to upload files such as msword, excel, jpg, and pdf. I have the encType property set in the form:...
2
by: HvG | last post by:
I'm sure this is a trivial question, but I cannot create an Outlook Object from a WebForm app, but can from a console app. or a Windows app. My COM knowledge is very poor sorry. ...
0
by: Microsoft NewsGroups | last post by:
I am creating a TAB delimited file with .XLS extention using the Response.ContentType = "application/ms-excel" method. Normally I would place this on it's own form and delete all the HTML in the...
1
by: iqedgeman | last post by:
I am using an excel spreadsheet to insert content for a report. I can access an excel spreadsheet ("sheet1") without any problems and change the rows and columns. And I can save my spreadsheet as an...
8
by: rssd | last post by:
can somebody help me. I'm trying to read some excel files but i'm always getting this error No type library matching "Microsoft Excel" found at D:\Genes_datasets\exp.pl line 4 Win32::OLE(0.16):...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.