Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

Deepak Yadav

Greenhorn
+ Follow
since May 30, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Deepak Yadav

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
18 years ago
Hi Tina
Check out the arguments of <Applet> tag. Might be you have not specified the right class name for 'code' attribute.
Deepak
19 years ago
Hi Dear
I am sending you the code for your problem.Hope it works...
Thanks Deepak
Code......

import java.awt.*;
import java.applet.* ;
import java.net.*;
/*<applet code = "ShowHtml" height=300 width=300> </applet>*/
public class ShowHtml extends Applet
{
public void start()
{
/* Create an Applet Context */
AppletContext ac = getAppletContext();
/*Create a url which points to your file in the hard disc*/
String url ="file:/c:/dees/User.java";
try
{

ac.showDocument(new URL(url));

}
catch(MalformedURLException e)
{
System.err.println("Url Not Correct");
}
}
}


19 years ago
First of all Thanks very much for your reply.
Could you please send a sample code in which servlet is communicating with Database and sends the data back to Applet....
We are doing the same thing mentioned above, which works fine in Appletviewer but is not working in Browser....
Could you please send us sample code which defines the technique to run it in browser.....
19 years ago
Hey ppl....
Is there nobody who can tell me the answer for this I am really and veri badly stuck in b/w ....Meriii nayiiyaa paar lagwaa do...bkds...this is my 100th query regarding the same...If in this world ani body knows this either mail me a sample file of policy or tell me the solution step by step..
Chaloo fir miltey hai...
Bhaiyoon ko Pardaaam,
Aur saarey bhaiii ki baheenon ko Mera pyaar bhara Hug.
Deepak Yadav
19 years ago
Hi
I have an Applet that communicates to Servlet and Servlet is interacting with database.This works in an appletviewer but not in the browser.
Please tell me the solution.
Looking forward for a extended cooperation.
Thanks Deepak
19 years ago