home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


JavaScript: The Definitive Guide

Previous Appendix C
Differences between Navigator 2.0 and 3.0
Next
 

C.2 LiveConnect

In Navigator 3.0, LiveConnect is the "glue" that connects JavaScript with Java and with Navigator plug-ins. It has the following new features:

  • The JavaPackage object represents a Java package.

  • The JavaClass object represents a Java class.

  • The JavaObject object represents a Java object.

  • The JavaArray object represents an array in Java.

  • The JavaMethod object represents a Java method.

  • The getClass() method returns the JavaClass object for any given JavaObject object.

  • The Java class netscape.javascript.JSObject represents a JavaScript object from within Java applets.

  • The applets[] array of the Document object is an array of JavaObject objects that represent the applets embedded in the document.

  • The embeds[] array of the Document object is an array of JavaObject objects that represent the embedded objects in the document, and allow JavaScript to control the Navigator plug-ins that display those objects.

See Chapter 19, LiveConnect: JavaScript and Java for details on all of these new objects, functions, and arrays.


Previous Home Next
Core Language Changes Book Index JavaScript Security

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell