Re: Scripting and XML

Paul Prescod (papresco@technologist.com)
Mon, 20 Oct 1997 10:11:21 -0400


Simon St.Laurent wrote:
> Scripts have been 'componentizable' for several years now through the SRC
> attribute of the SCRIPT element.

Not true. Componentization requires a separate namespace, setter and
getter functions, display area management, function name conventions and
so forth. Javascript has never had this before. Scriptlets are
Javascript applets. They add the conventions of java.applet to scripts.

> Scriptlets are not about componentizing
> JavaScript - they are about componentizing rich combinations of markup and
> script. While you could write a scriptlet in 100% script, you'd probably be
> wasting your time.

Not true. Java applets are "100% script scriptlets" written in Java.

Luckily we can approach this question emperically. Microsoft has four
sample scriptlets on ther website. The ratio of HTML to Javascript in
each of them is exteremely low. The HTML that is provided is typically
boilerplate:

They typically have a mostly vacuous header:
"
Label Scriptlet