How to call DLL in Javascript
| From: | Peter | Date: | Tue, 17 Nov 2009 12:28:24 +0000 |
| Subject: | How to call DLL in Javascript | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-299885@lists.php.net to get a copy of this message | ||
Hi All,
I want to call dll in javascript
I tried the following script, but i got the error message 'ActiveXObject is undefined'
(Note : i have the feedback.dll in the same path only)
<HTML>
<HEAD>
<script type='text/javascript' language='javascript'>
function comEventOccured()
{
try{
var myobject;
myobject = new ActiveXObject("feedback.dll");
}catch(e){
alert(e.description);
return false;
}
}
</script></head>
<body>
<input type=button value="Call the DLL" onClick="comEventOccured()">
</body>
</html>
Regards
Peter.