Web Analytics Made Easy -
StatCounter Loading active x control in IE. - CodingForum

Announcement

Collapse
No announcement yet.

Loading active x control in IE.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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
    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
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

    Comment


    • #3
      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

      Comment


      • #4
        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
        *keep it simple (TM)

        Comment


        • #5
          Modesty is often lacking in our transactions.

          Comment


          • #6
            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

            Comment


            • #7
              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
              *keep it simple (TM)

              Comment


              • #8
                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

                Comment


                • #9
                  HTA stands for HTML Application. Here's the overview of HTA.

                  Gain technical skills through documentation and training, earn certifications and connect with the community
                  Glenn
                  vBulletin Mods That Rock!

                  Comment

                  Working...
                  X