• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Tim Cooke
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Piet Souris
Bartenders:

Javascript to Java communication!

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
found the answer..
http://java.sun.com/products/plugin/1.3/docs/script.html
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
------------------
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic