[PRL] quick question about JS/REST, etc

Daniel Pinto de Mello e Silva dsilva at ccs.neu.edu
Mon Mar 7 10:00:57 EST 2005


Hi, I'm a little confused about the comments about client-side
JavaScript on the REST thread from last month.

What's the difference between JavaScript applets and Java applets?
Well, other than:

* It's convenient for a server to generate some JS code for each
request, but inconvenient (slow) for a server to generate a Java .class
file and force the browser to load the new Java class for each request.

* JS in a browser has access to the current page object, so it can read
from and write to any widget/DOM-node on the current page, whereas Java
applets read from other applets on the page and write to an AWT/Swing
pane.

* JavaScript is not Java.

By the way, is this any different from Microsoft XAML over IE?  Because
the three look almost the same to me.

Daniel





More information about the PRL mailing list