creating ActiveXobject in mozilla, invoking shell commands.

Discussion in 'ASP .Net' started by Mohd Ebrahim, Jul 11, 2010.

  1. Mohd Ebrahim

    Mohd Ebrahim Guest

    Hi,

    I'm unable to run the below script in the mozilla browser, i get error
    'ActiveXobject not defined'. Is there an alternate way of fixing this in
    mozilla?

    kindly send me the code or resource links

    kindly suggest.

    ***********************************************************

    <html>
    <head>
    <script language="JavaScript" type="text/javascript">
    function execute()
    {
    var obj = new ActiveXObject( "WScript.Shell" ) ;
    obj.Run("notepad.exe") ;
    }

    </script>
    </head>
    <body>
    <button onclick="execute()">open Notepad</button>
    </body>
    </html>
     
    Mohd Ebrahim, Jul 11, 2010
    #1
    1. Advertisements

  2. Mohd Ebrahim

    Jason Keats Guest

    Mohd Ebrahim wrote:
    > Hi,
    >
    > I'm unable to run the below script in the mozilla browser, i get error
    > 'ActiveXobject not defined'. Is there an alternate way of fixing this in
    > mozilla?
    >
    > kindly send me the code or resource links
    >
    > kindly suggest.
    >


    https://support.mozilla.com/en-US/kb/ActiveX
     
    Jason Keats, Jul 11, 2010
    #2
    1. Advertisements

  3. Mohd Ebrahim

    Cubaman Guest

    On Jul 11, 3:06 pm, Mohd Ebrahim
    <> wrote:
    > Hi,
    >
    > I'm unable to run the below script in the mozilla browser, i get error
    > 'ActiveXobject not defined'. Is there an alternate way of fixing this in
    > mozilla?
    >
    > kindly send me the code or resource links
    >
    > kindly suggest.
    >
    > ***********************************************************
    >
    > <html>
    >  <head>
    >      <script language="JavaScript" type="text/javascript">  
    >          function execute()  
    >          {  
    >            var obj = new ActiveXObject( "WScript.Shell" ) ;
    >            obj.Run("notepad.exe") ;  
    >         }  
    >
    >     </script>
    >  </head>
    >  <body>
    >     <button onclick="execute()">open Notepad</button>
    >  </body>
    > </html>


    Firefox does not support ActiveX technology for multiple reasons.

    * ActiveX is only available on Windows operating systems, and as a
    result webpages that require it will not work on Linux or Mac.
    * ActiveX integration with the Windows operating system has made
    it a target for malicious software.

    http://support.mozilla.com/en-us/kb/activex

    Best regards.
     
    Cubaman, Jul 12, 2010
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Allan Rojas

    Shell commands in ASP.NET?

    Allan Rojas, Jul 3, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    3,918
    dave wanta
    Jul 3, 2003
  2. Jim Fisher

    Invoking Commands in J2EE

    Jim Fisher, May 22, 2004, in forum: Java
    Replies:
    0
    Views:
    427
    Jim Fisher
    May 22, 2004
  3. Ben Pfaff

    Re: man pages for C commands (GCC commands)

    Ben Pfaff, Jun 24, 2003, in forum: C Programming
    Replies:
    4
    Views:
    4,199
    Thomas Stegen
    Jun 28, 2003
  4. Tim Stanka
    Replies:
    1
    Views:
    962
    Jeff Epler
    Aug 2, 2004
  5. Rob Cowie
    Replies:
    5
    Views:
    539
    Will McDonald
    Dec 17, 2005
  6. =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?=

    ActiveXObject("Shell.Application")

    =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?=, May 16, 2007, in forum: ASP .Net
    Replies:
    4
    Views:
    5,484
    Alvin Bruney [MVP]
    May 17, 2007
  7. Marcin Zmyslowski
    Replies:
    2
    Views:
    566
    Marcin Zmyslowski
    Jun 1, 2005
  8. vabby
    Replies:
    10
    Views:
    345
    Joe Smith
    Mar 13, 2007
Loading...