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
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