Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_java thread: Re: Java Applet and JavaScript


Message #1 by "Kalyan Tej Musunuri" <wroxp2p@y...> on Sun, 13 May 2001 10:56:49
Hi,

The applet can be accessed using the following reference 

   document.applets["MyApplet"].property
                 [or]
   document.applets[0].property

this will work both in IE and netscape 3+ versions.

> Hey All,
> 
> I've been coding a JApplet and used the object/embed tag, the problem is 
> now I'm trying to access a property in my applet to pass on into another 
> jsp page.  But when using javascript, it can't access an attribute in 
the 
> applet.  I'm using document.MyApplet.Attribute and it doesn't seem to be 
> working, I've created a simple html button to retrieve what the value, 
but 
> when clicked, it only returns "undefined".  
> 
> Does anyone know how to access the properties of a java application via 
> javascript in IE and Netscape?
> 
> Thanks for any help! 
> 
> Have a great one! 
> 
> Steven 

  Return to Index