Nick,

Try taking "javascript:" out of your onclick for the button. Also, you should 
have that button within a form.

Also, you may want to use a Mozilla based browser for debugging JavaScript 
problems. IE stinks for trying to figure these problems out. I realize that 
what you're doing is IE specific but you could just have your function pop up 
an alert box for purposes of testing.

Finally, you'll never see client side issues in your server logs.

Matt
-----Original Message-----
From: Nick Mart [mailto:nick@xxxxxxxxxxxxxxxx]
Sent: Monday, February 07, 2005 3:15 PM
To: Web 400
Subject: [WEB400] Web Facing HTML question


I am attempting to launch a PC application from a Web Faced screen. I am
able to do this with the follow html coding.

 

<script language="JavaScript">

function launchApp(strCmdLine) {var obj = new
ActiveXObject("LaunchinIE.Launch"); obj.LaunchApplication(strCmdLine);} 

</script>

            

<a
href="javascript:launchApp('c:\\program%20files\\microsoft%20office\\office1
1\\winword.exe')">Launch Word!</a>

 

The problem being is that this produces a link and they want a button. I
have tried the following without success.

 

<script language="JavaScript">

function launchApp(strCmdLine) {var obj = new
ActiveXObject("LaunchinIE.Launch"); obj.LaunchApplication(strCmdLine);} 

</script>

 

<INPUT TYPE="button"
onClick="javascript:launchApp('c:\\program%20files\\microsoft%20office\\offi
ce11\\winword.exe')">

 

This does produce a button on the web screen. However, it does nothing. The
logs do not show any errors. Any suggestions?

 

Thanks in advance!

 

Nick W. Mart

Programmer Analyst

Solutions, Inc.

2311 West 18th Street

PO Box 857

Spencer, IA 51301

 

712-262-4520  ext. 28

 

_______________________________________________
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.