Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open a application in Netscape

Status
Not open for further replies.

mikehrub

Technical User
Sep 6, 2000
7
US
I am using Netscape with IIS 4.0 on our intranet (company standard). I have a application Project Review by Bentley I need to launch within Netscape. I have tried to use WSH type command and all that happens is applications open up at the server. I need the browser to open the application on the client machine. Does anyone have any ideas how to do this.


If you look at my previous post you see what I have been tring up to this point.

Thank You
Mike
[sig][/sig]
 
Mike,

After reviewing your other post my two cents are...

You can't have a server side application execute something on the client. The other replier is correct in saying that VBScript really only works in IE on the client-side. Javascript probably won't be able to do it either. Consider the following...

test.js -
Code:
var WshShell = WScript.CreateObject("WScript.shell")
WshShell.Run ("Notepad.exe")

run this with wscript test.js or cscript test.js and it works fine; wrap some script tags around it and save it as an html page and it doesn't work. Browser javascript isn't meant to control anything other than the browser (hopefully someone can prove me wrong on this).

Check this out...

test.html -
Code:
<html>
<script language=&quot;javascript&quot;> 
function fnExecuteJS(){
 var WshShell = CreateObject(&quot;WScript.Shell&quot;) 
 WshShell.Run (&quot;c:\winnt\notepad.exe&quot;) 
}
</script>
<script language=&quot;vbscript&quot;> 
Sub btnRunVB_OnClick
 Dim WshShell
 Set WshShell = CreateObject(&quot;WScript.Shell&quot;) 
 WshShell.Run (&quot;c:\winnt\notepad.exe&quot;) 
End Sub
</script>
<body> 
<form NAME=&quot;frmRun&quot;> 
 <input type=&quot;button&quot; id=&quot;btnRunJ&quot; name=&quot;btnRunJ&quot; value=&quot;Notepad with JavaScript&quot; onClick=&quot;fnExecuteJS()&quot;>
 <input type=&quot;button&quot; id=&quot;btnRunVB&quot; name=&quot;btnRunVB&quot; value=&quot;Notepad with VBScript&quot;>
</form> 
</body>
</html>

This shows that VBScript can do what you want it to do (with some warnings depending on your browser settings) but only in IE. The latest version of NN can't run either function.

There are two solutions...

test.html -
Code:
<html>
<body>
<a href=&quot;c:\winnt\notepad.exe&quot;>Notepad</a>
<body>
</html>

Pretty obvious this isn't what you want as it will bring up confirmation dialogs and security warnings but it is browser agnostic.

ActiveX control or plug-in
There should be plug-ins available that will allow you to do this and if not then you could install a plug-in to allow the running of ActiveX controls and then install an ActiveX control that allows the execution of programs locally.

Good luck,
Rob


[sig][/sig]
 
Thanks for the help
I am able to use the vbscript in IE but not in Netscape. The java script does not work in either one. I see some where in my browsing there is a plug-in for vbscript in Netscape does anyone have an idea where I might find it.

Thank You
Mike
[sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top