kerene
03-01-2009, 06:46 AM
I have a problem here.
I have converted a matlab file (doing plotting) to .exe...and I need to run it on a web page. (ie: when user click on the button, they can run the file and do plotting).
I have the following code found on the web and I tried to understand it and change it but it doesn't work for me. Click on it no response. Please guide me on how to go about doing it. Thanks
The .exe file is located at the picture folder in my Apache ROOT file:
.\ROOT\design\picture
<html>
<head>
<script language="JavaScript" type="text/javascript">
MyObject = new ActiveXObject( "WScript.Shell" )
function RunExe() {
MyObject.Run("./picture/EPLM.exe") ;
}
</script>
</head>
<body>
<h1>Run a Program</h1>
<button onclick="RunExe()">Run</button>
</body>
</html>
I have converted a matlab file (doing plotting) to .exe...and I need to run it on a web page. (ie: when user click on the button, they can run the file and do plotting).
I have the following code found on the web and I tried to understand it and change it but it doesn't work for me. Click on it no response. Please guide me on how to go about doing it. Thanks
The .exe file is located at the picture folder in my Apache ROOT file:
.\ROOT\design\picture
<html>
<head>
<script language="JavaScript" type="text/javascript">
MyObject = new ActiveXObject( "WScript.Shell" )
function RunExe() {
MyObject.Run("./picture/EPLM.exe") ;
}
</script>
</head>
<body>
<h1>Run a Program</h1>
<button onclick="RunExe()">Run</button>
</body>
</html>