February 2000
Intermediate to advanced
720 pages
15h 26m
English
In Netscape Navigator you can use the LiveConnect technology to access Java packages, classes, methods, and variables directly from JavaScript code. You do not need to write an applet with public functions in order to access Java.
When you invoke the constructor for a Java class in JavaScript, LiveConnect creates a wrapper object for that Java object. Invoking methods and accessing properties for the wrapper object causes methods to be invoked and properties to be accessed in the Java object.
Behind the scenes, the following special LiveConnect objects are used as wrappers for Java objects:
JavaArray is a wrapped Java array that you access from JavaScript code.
JavaClass is a reference to a Java class in ...
Read now
Unlock full access