Basic HTML version of Foils prepared 23 June 1997

Foil 76 LiveConnect Java to JavaScript - I

From JavaScript Tutorial for Certificate Course UC Web applications Certificate -- Summer 97. by Geoffrey C. Fox, Tom Scavo


1 LiveConnect is an important but still experimental capability that allows Java applets to freely access JavaScript variables and vice versa
2 You can use this to call Java methods in JavaScript noting that a Java package X is called Packages.X in JavaScript
3 var mydate = new Packages.java.util.date();
4 Creates a JavaScript variable from the Java Date constructor
5 This development potentially gives an interpreted version of Java!
6 LiveConnect is only supported by Netscape at present
7 You can also change Java variables in running applets as long as they are public (see next page)

in Table To:


Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Wed Apr 1 1998