i have a piece of javascript code that works fine when starting it form a html page on my harddisk, locally, but trough an asp page this does not work... any suggestions?
<the bold is where it goes wrong>
in the head
</script>
<script type="text/javascript" language="JavaScript">
function ShellRun(cmdline, args)
{
var WshShell = new ActiveXObject('WScript.Shell');
var intWindowStyle = 1;
var bWaitOnReturn = true;
var quotes = "\"" ;
cmdline = quotes + cmdline + quotes;
WshShell.run (cmdline+" "+args ,intWindowStyle, bWaitOnReturn);
}
function StartDocReg(sFullname)
{
cmdline="F:\\Apps\\WordVBA Shared\\QWord.exe";
args = 'L=F S=F M=QDocumentRegEx A2=2 A1=' + sFullname;
ShellRun(cmdline,args);
}
</script>
and in the body
<FORM name=Form1>
<INPUT onclick="StartDocReg('H:\\TestEmil.doc')" type=button value="Launch DocReg" name=ButtonDocReg>
</FORM>
</td>
</tr>