GeeCON Prague 2014*
The moose likes HTML, CSS and JavaScript and the fly likes dynamically change Applet param via javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "dynamically change Applet param via javascript" Watch "dynamically change Applet param via javascript" New topic
Author

dynamically change Applet param via javascript

Yahya Elyasse
Ranch Hand

Joined: Jul 07, 2005
Posts: 510

Hi guys,

I have an Applet which i'm loading through an HTML file with a list of parameters names and values.
I would like to add the feature of being able to dynamically change param values via javascript.

is this possible and how can it be done?

thanking you much
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42061
    
  64
You may be able to change the page DOM through JavaScript, but once an applet is initialized, any change of the page won't be reflected in the applet. To influence a running applet via JavaScript, you need to access its public fields and methods via LiveConnect, and react accordingly in your applet code. The Applets FAQ has some links about LiveConnect.


Ping & DNS - my free Android networking tools app
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61316
    
  66

Moved to the Applets forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
GeeCON Prague 2014
 
subject: dynamically change Applet param via javascript