wood burning stoves 2.0*
The moose likes Applets and the fly likes can this be done? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "can this be done?" Watch "can this be done?" New topic
Author

can this be done?

john Galloway
Greenhorn

Joined: Aug 14, 2003
Posts: 2
I've been asked to write some javscript code that changes PARAM values in a displayed applet (graphing tool). I'm new to this but can't see how this cn be done on the fly. Any Ideas?
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1871
hi john
from ur post i understand following,
- u have a html page where there are some html items for input
- u have the applet that does something using those html items input
- u need to pass params to the applet
now, i dont understand following,
- y u want to change applet's param values by javascript? because even if u are able to do it then how applet will know about it? Instead i guess u directly need to change the applet's parameter "somehow" (i'll talk about this somehow thing) so that applet can refresh itself or something.
- u r sure that u r not confusing JSP with JavaScript?
if i elaborate more on "somehow" word in above text then, u'll essentially call applet 's public method which u'll have to write in the applet and make a call to that method via javascript. now, that most probably won't work in Netscape as if u use Embed tag for swing applet in Netscape then it doesnt recognizes it as an applet and so v r not able to call methods that way (in IE with Object tag u can call public methods on the applet using ID given to the Object tag)...
regards
maulin
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can this be done?