Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New to the CF scene
    Join Date
    Jun 2002
    Location
    NY, NY
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Loading active x control in IE.

    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

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #3
    New Coder
    Join Date
    Apr 2004
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #4
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #5
    Regular Coder
    Join Date
    Jun 2004
    Location
    underground
    Posts
    186
    Thanks
    0
    Thanked 0 Times in 0 Posts

  • #6
    New Coder
    Join Date
    Apr 2004
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question

    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

  • #7
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #8
    New Coder
    Join Date
    Apr 2004
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #9
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,037
    Thanks
    0
    Thanked 250 Times in 246 Posts
    HTA stands for HTML Application. Here's the overview of HTA.

    http://msdn.microsoft.com/workshop/a...taoverview.asp


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •