Kamal
Kamal

Reputation: 43

Can a Java Object be passed from Java Script to Applet

Can you please let me know whether we can pass a Java Object from JavaScript to Applet .

Upvotes: 2

Views: 749

Answers (1)

John
John

Reputation: 6785

No, you can't. Javascript can't make a java Object, since a java Object can only exist inside a JVM. Javascript doesn't run in a JVM. But javascript code can pass parameters (typically strings) to an applet, and you can call methods on your applet's top level class.

The best place to start is Sun's documentation. There's more description here, and an example here.

Upvotes: 3

Related Questions