HELP! * GREY=local LOCAL HTML version of Foils prepared 15 January 1997

Foil 76 LiveConnect Java to JavaScript - I

From JavaScript Tutorial for CPS616 Technologies of the Information Age 1997 Basic Information Track of CPS -- Spring Semester 97. by Geoffrey C. Fox * See also color IMAGE

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



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 Sat May 24 1997