...

View Full Version : Loading active x control in IE.



BillL
07-08-2002, 07: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....

function getPC()
{
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....


Thanks

brothercake
07-08-2002, 08: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

janice_2k
07-21-2004, 08:19 AM
Hi brothercake,
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,
Janice

jbot
07-21-2004, 10:36 AM
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

neofibril
07-21-2004, 11:29 AM
Chapter 21 ActiveX Controls and the Internet (http://sunsite.iisc.ernet.in/virlib/activex/devvb/ch21.htm)

janice_2k
07-23-2004, 10:48 AM
Hi jbot,
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,
Janice

jbot
07-23-2004, 11:02 AM
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

janice_2k
08-10-2004, 07:48 AM
Hi jbot,
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,
Janice

glenngv
08-10-2004, 08:09 AM
HTA stands for HTML Application. Here's the overview of HTA.

http://msdn.microsoft.com/workshop/author/hta/overview/htaoverview.asp



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum