aspose file tools
The moose likes Applets and the fly likes Calling ActiveX method in NetScape Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Applets
Reply Bookmark "Calling ActiveX method in NetScape" Watch "Calling ActiveX method in NetScape" New topic
Author

Calling ActiveX method in NetScape

Deepak Yadav
Greenhorn

Joined: May 30, 2001
Posts: 7
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

Joined: Jun 25, 2001
Posts: 14480
    
    7

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.

Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Calling ActiveX method in NetScape
 
Similar Threads
Problem while Invoking Applet's method from javascript
Opening webpage from Applet
Unable to get plugin version!!!!
No Sound
Where is the documentation on SwingApplet Plugins?