• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javascript to Java communication!

 
Charlie Boss
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My applet uses the java 1.3 plugin so instead of using the <applet></applet> tags on the html page it uses <object></object>
now i've been reading on how to use javascript to talk to my applet however all the examples i've seen so far call applet methods like so:
document.applets[0].appletMethodName();
how do i do this in the new java plugin since i'm not using the applets array but the new object tags. Help please.
 
Charlie Boss
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
found the answer..
http://java.sun.com/products/plugin/1.3/docs/script.html
 
bistra
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I know, when you set up the object you give it an ID.
That ID becomes the connector to the Javasvript function.
e.g.
function ID.xxxx(){
}
Where xxxx is the name of the object method you want to call.
Hope it helps
Kind regards
Bistra
------------------
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic