Darkcain
01-26-2009, 04:49 PM
Hi newbie question,
I am trying to get a VBS to launch from a button click. I have had some help from a colleague but so far no luck, so far all that happens when the button is clicked is it switches from being highlighted "click me..." to a depressed "installing" my Vbs path is correct,
I would be really grateful for any help.
</head>
<body>
<script type="text/javascript">
function vbsComplete() {
//alert('Completed!')
}
function install() {
var vbs = 'http://servername/*****/vbs/*.vbs';
var applet = '<APPLET CODE="org.*****.ProcessStarterApplet" ARCHIVE="ProcessStarter2.jar" WIDTH="0" HEIGHT="0" MAYSCRIPT>';
applet += '<PARAM NAME="scriptUrl" VALUE="'+vbs+'" /><PARAM NAME="cache_archive" VALUE="ProcessStarter2.jar,plugin.jar">';
applet += '<PARAM NAME="showConfirm" VALUE="false" /></APPLET>';
document.getElementById('appletDiv').innerHTML = applet;
document.getElementById('btnInstall').value = 'Installing';
document.getElementById('btnInstall').disabled = true;
}
</script>
<form>
<div>
<p align="justify"><img src="http://******/888888/*.png" width="148" height="51"></p>
<p align="justify">Welcome to the blah blah blah </p>
<p align="justify"><img src="http://*****/888888/*.jpg" width="126" height="124"></p>
<p align="justify"></p>
<p align="justify">
<input type='button' id='btnInstall' onclick='install();' value='Click me to begin install' />
</p>
</div>
<script type="text/javascript">
document.getElementById('btnInstall').disabled = false;
</script>
</form>
<div id='appletDiv'></div>
</body>
</html>
I am trying to get a VBS to launch from a button click. I have had some help from a colleague but so far no luck, so far all that happens when the button is clicked is it switches from being highlighted "click me..." to a depressed "installing" my Vbs path is correct,
I would be really grateful for any help.
</head>
<body>
<script type="text/javascript">
function vbsComplete() {
//alert('Completed!')
}
function install() {
var vbs = 'http://servername/*****/vbs/*.vbs';
var applet = '<APPLET CODE="org.*****.ProcessStarterApplet" ARCHIVE="ProcessStarter2.jar" WIDTH="0" HEIGHT="0" MAYSCRIPT>';
applet += '<PARAM NAME="scriptUrl" VALUE="'+vbs+'" /><PARAM NAME="cache_archive" VALUE="ProcessStarter2.jar,plugin.jar">';
applet += '<PARAM NAME="showConfirm" VALUE="false" /></APPLET>';
document.getElementById('appletDiv').innerHTML = applet;
document.getElementById('btnInstall').value = 'Installing';
document.getElementById('btnInstall').disabled = true;
}
</script>
<form>
<div>
<p align="justify"><img src="http://******/888888/*.png" width="148" height="51"></p>
<p align="justify">Welcome to the blah blah blah </p>
<p align="justify"><img src="http://*****/888888/*.jpg" width="126" height="124"></p>
<p align="justify"></p>
<p align="justify">
<input type='button' id='btnInstall' onclick='install();' value='Click me to begin install' />
</p>
</div>
<script type="text/javascript">
document.getElementById('btnInstall').disabled = false;
</script>
</form>
<div id='appletDiv'></div>
</body>
</html>