how to launch a window's application from webpage using java?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dan glenn

    how to launch a window's application from webpage using java?

    I want to use some javascript to launch a windows application (this used on
    intranet) but don't know how. Can anyone help me out please?

    It'd be neat if I could not only launch the application but minimize the
    webpage's browser at the same time, but this is just icing on the cake...

    -dg


  • bengee

    #2
    Re: how to launch a window's application from webpage using java?

    dan glenn wrote:[color=blue]
    > I want to use some javascript to launch a windows application (this used on
    > intranet) but don't know how. Can anyone help me out please?
    >
    > It'd be neat if I could not only launch the application but minimize the
    > webpage's browser at the same time, but this is just icing on the cake...[/color]

    If by "windows application" you mean a Microsoft windows application,
    then AFAIK you can't.

    bengee

    Comment

    • kaeli

      #3
      Re: how to launch a window's application from webpage using java?

      And on the day Sat, 11 Oct 2003 08:24:46 GMT, dan_danboy@yaho o.com
      enlightened us with <i7Phb.13682$S4 1.129@newssvr25 .news.prodigy.c om>...[color=blue]
      > I want to use some javascript to launch a windows application (this used on
      > intranet) but don't know how. Can anyone help me out please?
      >[/color]

      If using IE, you can use ActiveX.

      objXL = new ActiveXObject(" Excel.Applicati on");
      objXL.Visible = true;


      --------------------------------------------------
      ~kaeli~
      Kill one man and you are a murderer. Kill millions
      and you are a conqueror. Kill everyone and you
      are God.


      ------------------------------------------------

      Comment

      • dan glenn

        #4
        Re: how to launch a window's application from webpage using java?

        "bengee" <postmaster@loc alhost.localdom ain> wrote in message
        news:u7Qhb.6433 $kA.1984127@war ds.force9.net.. .[color=blue]
        > dan glenn wrote:[color=green]
        > > I want to use some javascript to launch a windows application (this used[/color][/color]
        on[color=blue][color=green]
        > > intranet) but don't know how. Can anyone help me out please?
        > >
        > > It'd be neat if I could not only launch the application but minimize the
        > > webpage's browser at the same time, but this is just icing on the[/color][/color]
        cake...[color=blue]
        >
        > If by "windows application" you mean a Microsoft windows application,
        > then AFAIK you can't.
        >
        > bengee[/color]

        Actually, what I need to run is a help application (.chm) file. It seems
        incredible that there is no way to do this! (Platform is Win98, IE6)

        -dg




        Comment

        • dan glenn

          #5
          Re: how to launch a window's application from webpage using java?

          "kaeli" <infinite.possi bilities@NOSPAM att.net> wrote in message
          news:MPG.19f1bf 8c535ccf2798976 e@netnews.world net.att.net...[color=blue]
          > And on the day Sat, 11 Oct 2003 08:24:46 GMT, dan_danboy@yaho o.com
          > enlightened us with <i7Phb.13682$S4 1.129@newssvr25 .news.prodigy.c om>...[color=green]
          > > I want to use some javascript to launch a windows application (this used[/color][/color]
          on[color=blue][color=green]
          > > intranet) but don't know how. Can anyone help me out please?
          > >[/color]
          >
          > If using IE, you can use ActiveX.
          >
          > objXL = new ActiveXObject(" Excel.Applicati on");
          > objXL.Visible = true;
          >
          >
          > --------------------------------------------------
          > ~kaeli~
          > Kill one man and you are a murderer. Kill millions
          > and you are a conqueror. Kill everyone and you
          > are God.
          > http://www.ipwebdesign.net/wildAtHeart/
          > http://www.ipwebdesign.net/kaelisSpace/
          > ------------------------------------------------[/color]

          Thanks, ~kaeli~, but actually I need to bring up a Windows ".chm" help
          application. (platform is Win98, IE6) Can this be done with Java in some
          way??

          -dg
          Love one and you are average. Love millions and
          you are a saint. Love everyone and you are God.


          Comment

          • kaeli

            #6
            Re: how to launch a window's application from webpage using java?

            In article <AUYhb.542$n85. 97810636@newssv r21.news.prodig y.com>,
            dan_danboy@yaho o.com enlightened us with...[color=blue]
            >
            > Thanks, ~kaeli~, but actually I need to bring up a Windows ".chm" help
            > application. (platform is Win98, IE6) Can this be done with Java in some
            > way??
            >[/color]

            Not Java - use IE and ActiveX with WSH (windows scripting host).
            I tested this with Win2K/IE6, so I would hope it works in 98...
            Change the variable helpFile to point to the one you want to open. the
            double slashes to separate the directory names are necessary.

            <html>
            <head>
            <title> New Document </title>
            </head>

            <body>
            <SCRIPT Language="JScri pt">
            function openHelp() {
            helpFile="C:\\W INNT\\Help\\acc ess.chm";
            WSH=new ActiveXObject(" WScript.Shell") ;
            WSH.run(helpFil e);
            }
            </SCRIPT>
            <A href="#" onClick="openHe lp(); return false;">Open Help File</A>
            </body>
            </html>


            -------------------------------------------------
            ~kaeli~
            Jesus saves, Allah protects, and Cthulhu
            thinks you'd make a nice sandwich.


            -------------------------------------------------

            Comment

            • dan glenn

              #7
              Re: how to launch a window's application from webpage using java?

              "kaeli" <infinite.possi bilities@NOSPAM att.net> wrote in message
              news:MPG.19f456 0cdbed78779898b d@nntp.lucent.c om...[color=blue]
              > In article <AUYhb.542$n85. 97810636@newssv r21.news.prodig y.com>,
              > dan_danboy@yaho o.com enlightened us with...[color=green]
              > >
              > > Thanks, ~kaeli~, but actually I need to bring up a Windows ".chm" help
              > > application. (platform is Win98, IE6) Can this be done with Java in some
              > > way??
              > >[/color]
              >
              > Not Java - use IE and ActiveX with WSH (windows scripting host).
              > I tested this with Win2K/IE6, so I would hope it works in 98...
              > Change the variable helpFile to point to the one you want to open. the
              > double slashes to separate the directory names are necessary.
              >
              > <html>
              > <head>
              > <title> New Document </title>
              > </head>
              >
              > <body>
              > <SCRIPT Language="JScri pt">
              > function openHelp() {
              > helpFile="C:\\W INNT\\Help\\acc ess.chm";
              > WSH=new ActiveXObject(" WScript.Shell") ;
              > WSH.run(helpFil e);
              > }
              > </SCRIPT>
              > <A href="#" onClick="openHe lp(); return false;">Open Help File</A>
              > </body>
              > </html>
              >
              >
              > -------------------------------------------------
              > ~kaeli~
              > Jesus saves, Allah protects, and Cthulhu
              > thinks you'd make a nice sandwich.
              > http://www.ipwebdesign.net/wildAtHeart
              > http://www.ipwebdesign.net/kaelisSpace
              > -------------------------------------------------[/color]

              Right - not 'java' - I meant javascript when I typed 'java'. I know what you
              say here will work because someone else from an HTML newsgroup pointed me to
              a long-winded general purpose 'launch' javascript program that used windows
              scripting host and ActiveX object as well, in the same way. When I tried
              that, it worked, but IE would always prompt with a security warning about
              the ActiveX being downloaded that the user would have to step past.

              Since then someone referred me to a page which said all I needed to use was
              'showHelp' with the argument being the path-filename of the .chm help file.
              In other words:

              function openHelp() {
              window.showHelp ('c:/path/helpfile.chm');
              }

              This works perfectly - no IE security warning to have to step past. At least
              on my XP home machine, it works. The article said it should also work on
              Win98 (where I intend to install it), and for Win95 it could be made to work
              by downloading something or other and installing it, but I didn't pay much
              attention to that, not having to worry about win95.

              -dg
              Allah protects, Jesus redeems, Buddha awakens.
              I sure could go for a good hamburger right now.


              Comment

              • kaeli

                #8
                Re: how to launch a window's application from webpage using java?

                In article <F_Fib.1164$0b1 .170106134@news svr21.news.prod igy.com>,
                dan_danboy@yaho o.com enlightened us with...[color=blue]
                >
                > function openHelp() {
                > window.showHelp ('c:/path/helpfile.chm');
                > }
                >
                > This works perfectly - no IE security warning to have to step past. At least
                > on my XP home machine, it works.[/color]

                Hey, that's good to know.
                It probably only works in IE, but for many intranet applications, that
                suffices.
                Thanks for the tip.


                -------------------------------------------------
                ~kaeli~
                Jesus saves, Allah protects, and Cthulhu
                thinks you'd make a nice sandwich.


                -------------------------------------------------

                Comment

                Working...