|
Do you have the LaunchinIE.Launch ActiveX control installed on the client PC? Are you security settings correct? -----Original Message----- From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Nick Mart Sent: Monday, February 07, 2005 2: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 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.