Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling ActiveX method in NetScape

 
Deepak Yadav
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI
we are trying to access ActiveX in Netscape through javascript...
We have successfully called ActiveX in Netscape but when we are trying to call a method of Activex in javascript, we get the following error
"document.<activexCtrlName> has no properties".
I am using Esker ActiveX plugin for NetScape.
The call to ActiveX method is made in hello() method of javascript(document.Activex.checkVnc())

The code is:

<BODY >
<h2>ActiveX</h2><br>
<script>
if (navigator.appName == "Netscape")
{
if (npeskp32Installed ())
{
document.write ('<embed type="application/x-eskerplus"');
document.write (' id="Activex"');
document.write (' classid="clsid:96A55E21-0766-4AB8-BD87-01DCBF21EB90"');
document.write (' codebase="http://191.55.1.101:8080/gmivnc/VncApplet.ocx"');
document.write (' width=150');
document.write (' height=100');
document.write (' MAYSCRIPT = true>');
}
}
else
{
document.write ('<object');
document.write (' id="Activex"');
document.write (' classid="clsid:96A55E21-0766-4AB8-BD87-01DCBF21EB90"');
document.write (' codebase="http://191.55.1.101:8080/gmivnc/VncApplet.ocx"');
document.write (' width=150');
document.write (' height=100');
document.write (' MAYSCRIPT = true>');
document.write ('</object>');
}
function hello()
{
alert("hello active x and aplet");
var flg = document.Activex.checkVnc();
alert(flg);
alert("after about box call");
}
</script>
<form name ="frm">
<input type="button" name="click" value="click" onClick="hello()">
</form>
</body>
if anybody has idea please help me.
Thanks in advance
Deepak
deepaky@momentum-tech.com
 
Tim Holloway
Saloon Keeper
Posts: 18367
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm really down on ActiveX in Netscape. The plug-in we used to make our timesheet software package's activeX work torpedoed the Sun Java Plug-In. No Java applets needing the plug-in would run at all.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic