Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: executing a command line program with javascript


Message #1 by "Jeff Link" <jlink@u...> on Mon, 11 Feb 2002 18:31:33
In a similar situation I used the anchor tag like this:

<a href="../presentations/show2.pps">Show2</a>

It worked perfectly in Internet Explorer but did not work with Netscape. Any
ideas?


----- Original Message -----
From: "Greg Griffiths" <greg.griffiths@g...>
To: "JavaScript HowTo" <javascript_howto@p...>
Sent: Tuesday, February 12, 2002 1:41 PM
Subject: [javascript_howto] Re: executing a command line program with
javascript


> The warnings are there for security and I am reasonably sure that ActiveX
> won't run under Javascript. However, if you simply refer to the location
of
> the doc's using something like :
>
> <a href="../presentations/show2.pps">Show2</a>
>
> then this will open the file in the users defined application for that
MIME
> type (.pps) which is normally PowerPoint.
>
> At 18:31 11/02/02 +0000, you wrote:
> >I need some help finding a way to execute a command line program using
> >JavaScript.
> >
> >Specifically, I am trying to create an HTML menu that will run a
different
> >slide show based on the image selected on the "menu web page" (actually
an
> >HTML file in the root directory of the CD I am sending to my relatives).
> >For onClick of image1, I need to send "viewer show1" to the command line;
> >for onClick of image2, I need to send "viewer show2" to the command line;
> >etc.
> >
> >I was able to make VBScript work in FrontPage using:
> >    Set oShell = CreateObject( "WScript.Shell" )
> >    oShell.Run "viewer show1", 0, True
> >
> >Unfortunately, it doesn't work outside FrontPage and gives an ActiveX
> >control warning.
> >
> >Is there a way to execute a similar shell in JavaScript?
> >
> >Is there a better way to approach the HTML menu concept?
> >
> >Thanks for helping,
> >Jeff Link
> >
> >$subst('Email.Unsub').
>
>
$subst('Email.Unsub').
>
>
>


  Return to Index