• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to get value from javascript in applet?

 
rose deng
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
i want to get value from javascript in applet.i used following statement in applet: JSObject win=JSObject.getWindow(this);String value=(String)win.eval("getValue"); System.out.println(value); getValue is a javascript function which return String value. i runned it ,result show undefined.
Please help me with your talent.
 
Dale DeMott
Ranch Hand
Posts: 515
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you shed a bit more light on this. I may be able to help but I think I need more detail.
 
mkgeetha
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
did u add MAYSCRIPT in the applet tag in html ?
also , if u are using IE, try replacing eval(<function name> )
with call(<functionname>, null).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic