just ignore this, it was the backslashes!
________________________________
i've been reading the posts about PWBExecute, and i'm wondering whether there's something i'm missing here. i created a test page with this content:
<html>
<head>
<script language="JavaScript" type="text/JavaScript">
<!--
function OnClickExecute()
{
window.external.PWBExecute( 'c:\windows\notepad.exe' )
}
//-->
</script>
</head>
<body>
<a href="javascript:OnClickExecute()">TEST</a>
</body>
</html>
when i click on the link, nothing happens. my ini file looks like this:
[Java]
EnableExternalJava=True
JavaExit=
JavaActivity=
JavaRegister=
JavaHideToolbar=
JavaExecute=PWBExecute
JavaReadINIFile=
JavaPrint=
JavaHideAddressBar=
this PWBExecute, is it something you have to install separately? where can i find it?
regards,
bert
PWBExecute
Moderators: Tyler, Scott, PWB v2 Moderator
For completeness I will post the answer even though it was the backslashes.
You should use either a double backslash or a forward slash in the path to the EXE file.
function OnClickExecute()
{
window.external.PWBExecute( 'C:/windows/notepad.exe' )
}
Using a single backslash can cause PWB not to find the file because the single backslash can have special meaning.
--Scott
You should use either a double backslash or a forward slash in the path to the EXE file.
function OnClickExecute()
{
window.external.PWBExecute( 'C:/windows/notepad.exe' )
}
Using a single backslash can cause PWB not to find the file because the single backslash can have special meaning.
--Scott