Forums Register Login

Calling ActiveX method in NetScape

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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.
I've got no option but to sell you all for scientific experiments. Or a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 949 times.
Similar Threads
Problem while Invoking Applet's method from javascript
No Sound
Opening webpage from Applet
Unable to get plugin version!!!!
Where is the documentation on SwingApplet Plugins?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:59:49.