• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javascript, Applets, and Parameter Passing

 
Rob Hunter
Ranch Hand
Posts: 832
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to call a method in a applet that merely reprints the applet with a different value than what was initially printed to the applet. The method will accept a string and print that to the applet. I was wondering how to pass a string from a javascript to the applet and re-print the applet with that string. Could someone please answer this? Thanks.

Rob
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The solution to calling from JavaScript to Java is called "LiveConect", and some info about it can be found here.

I don't understand what you mean by "(re-)print the applet".
 
Rob Hunter
Ranch Hand
Posts: 832
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was looking to communicate between javascript on a webpage and an applet on the same page. I had to close the browser and re-open the page before it worked. What I meant by re-paint was how to call the paint method again for the applet since I had code in there that I wanted to trigger using a javascript method. It works fine now anyway. The re-opening of the page seems to resolve that problem. Thanks for the response.

Rob
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic