View Full Version : Loading active x control in IE.
07-08-2002, 06:27 PM
I have a question (ethics may be involved).
I am running an internal website.... when user's select a certain page they get the message"Some Software (active X control)....might be unsafe. Do you want to allow it to run?
The java script that is running....
var netObject, PCname;
netObject = new ActiveXObject("WScript.Network");
PCname = netObject.ComputerName;
document.form1.test.value = netObject.ComputerName;
This script needs to be run but...... I need this warning only turned off for this page....
I don't know if it is possible to bypass this message for one page.
I will understand if this is considered unethical....just let me know, so I don't reference it again....
07-08-2002, 07:36 PM
Within in Intranet zone you allow this script to run by setting the Advanced preferences in IE - "Allow unsigned ActiveX controls to run"
To use it publically, you will need to get a digital certificate from someone like VeriSign
07-21-2004, 07:19 AM
Is there a method to get digital certificate for free of charge? As I am a student with tight budget for my project, it would be very glad if you could recommend a digital certificate that is free or at a lower price. Looking forward to some replies soon.
Thanks in advance,
if it's for an internal website (aka intranet) then look into HTAs. ActiveX warnings are automatically switched off for them, i believe, since they are fully trusted and therefore over-ride security issues normally associated with a webpage.
check them out at MSDN (http://msdn.microsoft.com/) :D
07-21-2004, 10:29 AM
Chapter 21 ActiveX Controls and the Internet (http://sunsite.iisc.ernet.in/virlib/activex/devvb/ch21.htm)
07-23-2004, 09:48 AM
If it's for an external website (internet), how could I eliminate the ActiveX pop up? My application is an exe file. When user clicks on a button on the browser, the vbscript will call the exe file that is stored on the user's computer to be launched. This exe uses 2 dll files, which, also located in user's computer. Currently, in order to eliminate the ActiveX pop-up, I am changing the user's browser security settings to "Low". However, I don't think this is a good solution as this opens up user's computer to malicious programs. How can I solve this problem? Looking forward to some replies soon.
Thanks in in advance,
you can't stop the security warnings in non-fully trusted applications, ie normal webpages.
wot you could do tho is provide a link on your site to an HTA which they could then proceed to download, that way you could get round it. but you can't do so within the browser using normal HTML pages. (the HTA would run online, so they wouldn't be downloading the whole app, just the shell.)
hope that helps :D
08-10-2004, 06:48 AM
What is HTA? Could you please guide and assist me? I am very new in this area and at total lost now :( Looking forward to your reply soon.
Thanks in advance,
08-10-2004, 07:09 AM
HTA stands for HTML Application. Here's the overview of HTA.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.