• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Javascript to Java communication!

 
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
 
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
------------------
 
This parrot is no more. It has ceased to be. Now it's a tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic