Home » Developer & Programmer » Application Express, ORDS & MOD_PLSQL » Calling an executable using javascript from a button (Application Express, 3.2 , Windows)
Calling an executable using javascript from a button [message #457755] Tue, 25 May 2010 20:00
msmith362
Messages: 1
Registered: May 2010
Location: Washington, DC
Junior Member
I am trying to call a program file using javascript from a button. I placed the following in the HTML Header:
<SCRIPT Language="JavaScript">
function runcmd() {
File="C:\Program Files\FMS\Sentinel Visualizer 4.0\SentinelVisualizer.exe";
WSH=new ActiveXObject("WScript.Shell");
WSH.run(File);
}
</SCRIPT>

And then I placed the following in the buttons URL redirect:
onClick=runcmd();
All it does though is redirect to an empty html page. Any ideas as to how I can call a program file executable using a button in the application?
Previous Topic: Disable Button
Next Topic: ORACLE HTP TABLE, highlight table Row on mouseOver
Goto Forum:
  


Current Time: Fri May 25 07:59:41 CDT 2018