how ca Launch a application use javascript from apache

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ambitos
    New Member
    • Feb 2008
    • 3

    how ca Launch a application use javascript from apache

    Hi everyone!

    I need help for my web application
    I need make a button for launch a (window) application, autoroot, use javascript .

    I have the folling code


    [CODE=javascript]function launch(name, date)
    {
    var myLauncher = new ActiveXObject(' HyperLinkLaunch er.Launcher');
    myLauncher.Run( 'C:\\Windows\\n otepad.exe', date);
    }
    [/CODE]
    [HTML]</SCRIPT>
    <a href = "Run()">lau nch it!</a>
    [/HTML]
    but when i use apache for see my application, that code don't worked :(

    If can someone help me please ???
    Last edited by acoder; Feb 20 '08, 03:58 PM. Reason: Added code tags
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    So this works in IIS and not when served by Apache?

    Comment

    • ambitos
      New Member
      • Feb 2008
      • 3

      #3
      Hi

      No this works without web server. and it don't works when served by Apache.
      If I open the page with a simple double click it works. But when served by Apache this not works (?).

      I don't use IIS for this project.

      I use IE 7 for browser.


      Thanks

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        It might have something to do with the fact that you're using ActiveX, so the permissions are not set correctly for it to run. When served by Apache, I don't think it'll be from the trusted zone.

        Comment

        • ambitos
          New Member
          • Feb 2008
          • 3

          #5
          ok

          thanks a lot


          <
          < It might have something to do with the fact that you're using ActiveX, so the
          < permissions are not set correctly for it to run. When served by Apache, I don't
          < think it'll be from the trusted zone.

          Comment

          • acoder
            Recognized Expert MVP
            • Nov 2006
            • 16032

            #6
            If you add the site to the trusted zone, you may get it to work. Then again, it may not. I don't work with ActiveX. Good luck!

            Comment

            Working...