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

Foil 77 LiveConnect Java to JavaScript - II

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

So if Applet HelloWorld has:
  • public void setString(String aString) {
    • javaslocalcopy = aString;
    • repaint(); }
Then you can change javaslocalcopy from JavaScript using
document.applet["HelloWorld"].setString(text stuff from JavaScript);
Care must be taken in typing and best is to convert everything explicitly to Strings in Java and JavaScript
  • Netscape needs to clarify this!
Correspondingly Java Applets can control Web Pages with JavaScript functions in them and so access capabilities of Netscape Browser explicitly
  • see NPAC TANGO System



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