LiveConnect
From Wikipedia, the free encyclopedia
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 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).
LiveConnect was used in Netscape 4 to implement scriptability of NPAPI plugins.
[edit] See also
[edit] References
- Lori Marzilli Leonardo: Using Netscape LiveConnect, Spiral, ISBN 0-7897-1171-0
[edit] External links
- What Is LiveConnect?
- Use case
- The LiveConnect/Plug-in Developer's Guide
- Java Method Overloading and LiveConnect 3
- LiveConnect Exceptions
- Accessing Java from JavaScript
- LiveConnect Overview on developer.mozilla.org
- "Chapter 19" from the book "JavaScript: The Definitive Guide" (ISBN 0-596-00048-0)
- Chapter 6: "Working with Java and CORBA Objects Through LiveConnect"
- Java in Firefox Extensions using LiveConnect
- Citations from CiteSeer