Launching Application from a Client-side Script 
Author Message
 Launching Application from a Client-side Script

Hello

The beginning of this message may not seem pertinent to this group, but the
question is.

I have a CD-ROM based application that uses the WebBrowser control inside a
Macromedia Director interface. The application is used solely to access
local files stored on the CD-ROM. A number of the files are PDF files, which
I want to open in a version of Acrobat Reader 4.0 (also distributed on the
CD-ROM), rather than in the IE window using the Acrobat ActiveX control.

I had accomplished this previously with an Xtra for Director that embedded
the WebBrowser control. The Xtra allowed me to intercept hyperlinks and,
using Lingo, launch Acrobat Reader with the appropriate PDF file.

Due to incompatibilities between the Xtra and IE5, I had to rebuild the
interface using Director's built-in ActiveX functionality. In doing that, I
had to rewrite all of the Lingo for interaction between the WebBrowser
control and the application. Everything works fine except for the
aformentioned PDF functionality. Apparently, Director does not receive the
BeforeNavigate2 event generated when a hyperlink is clicked in the
WebBrowser control.

I need to explore other options. I have tried the FileSystemObject, but
security settings prevent this. There is also no way for me to guarantee
that the users will have the Windows Scripting Host installed.

Finally, my question...

Is there ANY way to launch an application and open a file from an HTML
document on the client side? Are there any other ActiveX controls that can
be distributed on the CD-ROM that will allow me to do this? If Windows
Scripting Host is the answer, is there a way to detect if it is installed?
Minimum system requirements for the CD-ROM are IE4, preferrably SP2, which
is also being distributed on the CD-ROM. However, I cannot assume that all
users will use the installer provide, as many may already have that version
or IE5.

Thank you very much in advance. I also apologize for the cross-post.

Gregory Rohman

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

Erin/Edwards Communications                     www.erinedwards.com



Fri, 30 Aug 2002 03:00:00 GMT  
 Launching Application from a Client-side Script

Quote:

> Hello

> The beginning of this message may not seem pertinent to this group, but the
> question is.

> I have a CD-ROM based application that uses the WebBrowser control inside a
> Macromedia Director interface. The application is used solely to access
> local files stored on the CD-ROM. A number of the files are PDF files, which
> I want to open in a version of Acrobat Reader 4.0 (also distributed on the
> CD-ROM), rather than in the IE window using the Acrobat ActiveX control.

> I had accomplished this previously with an Xtra for Director that embedded
> the WebBrowser control. The Xtra allowed me to intercept hyperlinks and,
> using Lingo, launch Acrobat Reader with the appropriate PDF file.

> Due to incompatibilities between the Xtra and IE5, I had to rebuild the
> interface using Director's built-in ActiveX functionality. In doing that, I
> had to rewrite all of the Lingo for interaction between the WebBrowser
> control and the application. Everything works fine except for the
> aformentioned PDF functionality. Apparently, Director does not receive the
> BeforeNavigate2 event generated when a hyperlink is clicked in the
> WebBrowser control.

> I need to explore other options. I have tried the FileSystemObject, but
> security settings prevent this. There is also no way for me to guarantee
> that the users will have the Windows Scripting Host installed.

> Finally, my question...

> Is there ANY way to launch an application and open a file from an HTML
> document on the client side? Are there any other ActiveX controls that can
> be distributed on the CD-ROM that will allow me to do this? If Windows
> Scripting Host is the answer, is there a way to detect if it is installed?

  Try {
    var wsh = new ActiveXObject('WScript.Shell');
  }
  catch (e) {
    alert('wsh not installed or security doesn't allow instaniating
it');
  }
  wsh.Run('yourApplication')

Quote:
> Minimum system requirements for the CD-ROM are IE4, preferrably SP2, which
> is also being distributed on the CD-ROM. However, I cannot assume that all
> users will use the installer provide, as many may already have that version
> or IE5.

> Thank you very much in advance. I also apologize for the cross-post.

> Gregory Rohman

> --------------------------

> Erin/Edwards Communications                     www.erinedwards.com

--

        Martin Honnen
        http://javascript.faqts.com/
        http://home.t-online.de/home/martin.honnen/jsgoddies.html



Fri, 30 Aug 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Launching Application from a Client-side Script

2. Help Using VBScript To Launch Client Side Applications

3. Client side scripting / server side scripting

4. Accessing Data generated with client-side script from server-side script

5. Calling Server Side Script from Client Side Script

6. Call Server Side Script From Client Side Script

7. Client side scripting / server side scripting

8. Assigning Client Script Variables to Application level variables inside of a Client Script

9. Launch server-side application

10. Launch server-side application

11. Launching a process from client-side vbscript ?

12. Need to launch Server Side App independant of client

 

 
Powered by phpBB® Forum Software