This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
Use JSObject class to call javascript code from applet
Posted by Kishori Sharan on January 18, 2002 at 5:58 PM
Hello Matt You can use JSObject class in java for interaction between applet and Javascript. I had posted a message as: "http://www.artima.com/java/answers/Feb2001/messages/211.html" which tell you some of the uses of JSObject. If you read this message then I think you will have idea how applet will call JavaScript method to resize the applet in the browser. Even you can execute all Javascript codes from your applet instead of calling Javascript method. However, calling JavaScript method would be a better idea. In case you change your JavaScript code then you don't need to recompile your applet class. Thanks Kishori
Replies:
|