Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can this be done?

 
john Galloway
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic