Basic HTML version of Foils prepared 3 March 99

Foil 15 Java vs. JavaScript IV

From Overview of JavaScript I -- Basic Web Scripting Language CPS616 Technologies of the Information Age -- Spring Semester 99. by Geoffrey C. Fox (Tom Scavo)


1 Typical Java applet Structure
  • Java source --> javac compiler --> JavaVM Universal Machine code in .class file
  • Store JavaVM .class files on Web Server
  • Download JavaVM from Server to Client
  • Interpreter built into browser, reads JavaVM and executes on client
  • (User or System) Java event handlers interpret events within applet
2 Typical JavaScript Structure
  • JavaScript Source is included in HTML text or special .js files included in HTML files
  • Combined JavaScript and HTML is downloaded and interpreted by browser on client to produce HTML Page
  • Events (not in applets but) in HTML Page (mouse clicks etc.) are either interpreted by browser default or overridden by user JavaScript code.

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 Mar 3 1999