Re: javascript?
RichD wrote:
What is the relationship between Java and Javascript?
Java is a programming language developed by Sun Microsystems in the
early 1990s originally as a subset of C++ designed to be safe and
portable, which became the virtual machine-implemented (typically)
language in use today.
JavaScript is a programming language developed by Netscape for use as a
client-side scripting in HTML. The name, I believe, was chosen to help
build on Java's growing popularity, although it is to the detriment of
all Java programmers thanks to people who think they are one and the same.
Note that what most people call "JavaScript" is actually properly called
"ECMAScript," which is the standardized superset that is reliably
implemented across browsers. JavaScript in particular refers to the
Netscape/Mozilla implementation.
Java 6 contains an implementation of JavaScript via the Rhino engine
(naturally, implemented in Java) for use in the javax.script package.
The built-by-default OJI connector in Mozilla's browsers allows one to
call Java from JavaScript implementations in those browsers.
--
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth