Visit Mozilla.org

LiveConnect

From MDC


LiveConnect is the name of an application programming interface that provides JavaScript with the ability to call methods of Java classes and vice-versa using the existing Java infrastructure.
LiveConnect may be removed from Mozilla 2.0 according to this post by Josh.

LiveConnect use by applets is enabled via the use of the "MAYSCRIPT" attribute in applet tags on an HTML page, following which the applet may refer to classes in the netscape.javascript package to access Javascript objects, and scripts may directly call applet methods (using the syntax document.applets.name.methodName()). Standard Java objects are also available for creation and manipulation by Javascript code (e.g. by writing code like "new java.lang.String('javascript string')" for classes in the java.* package hierarchy, or using a new "Packages" object for classes outside this hierarchy).

[edit] Documentation

Core JavaScript 1.5 Guide:LiveConnect Overview
An overview for Liveconnect.
Core JavaScript 1.5 Reference:LiveConnect
The Java classes used for LiveConnect, along with their constructors and methods.
Java Method Overloading and LiveConnect 3
The technique that LiveConnect uses to invoke overloaded Java methods from JavaScript.
LiveConnect Exceptions
How do Java and JavaScript catch exceptions generated by the other party?
Liveconnect Testcases
Determine that applets within different html tags work properly.

[edit] Community

[edit] Related Topics

JavaScript, Plugins