Hi
"Samuel W. Heywood" <[EMAIL PROTECTED]> wrote:
>> SH> If it were commented out, then it would be ignored even by
>> SH> Java-capable browsers.
>> no ... the script tag is not commented out ... all unknown tags are
>> ignored .... and if the script tag is followed by a comment than
>> JavaScript compliant browsers know, that this was done to hide the
>> script from non compliant browsers.
SH> OK, this seems to make some sense. How would I recognize a comment
SH> line designed to accomplish what you have described?
it directly follows a SCRIPT tag ...
>> PS: Sam, you again mixed up Java with JavaScript :)
SH> What is the difference? Is the following sentence a proper analogy?
SH> "Java Script is to Java as a Basic Program is to a Basic
SH> Interpreter."
no ...
it's more like JS is to Java what basic is to C++.
The 2 things don't have to do anything with each other.
(except the name)
JavaScript is a very stripped down interpreted scriptlanguage.
Java is a full fledged, object oriented programming language.
With JavaScript, you can for example change the image under the
mousecursor.
But there are complete Office applications (text, spreadsheet ...) written
in Java.
Java runs on any platform, for which a JavaVM exists.
JavaScript is embedded in the HTML File, whereas Java Applets have to be
downloaded separately.
SH> So when a Java-capable browser encounters Java Script it just
SH> automagically runs some kind of interpreter built into the browser?
Yes ... but Java-capability has nothing to do with it !!!
SH> And what is a Java Applet? Is it like a compiled EXE, but with the
SH> difference being that it runs a program from a browser program instead
SH> of from the command line?
Yes ... there are 2 sorts of Java Programms.
1) applications (big programs, that run forthemselfes)
2) applets (browser controlls them)
SH> Question: Can a Java Applet be run by loading cached files into the
SH> browser while offline?
yes ...
SH> What I interpret from what you have said is that a Java-capable
SH> browser will run the script provided the script is commented out in
SH> the manner that you have indicated.
javaSCRIPT-capabla browsers will do so.
But they will also run it, if it's not commented out.
Commenting it out, is only done, so that not javascript capabla browsers
are not sidturbed.
SH> If this were the case, then why don't web page designers comment out
SH> the script as they should?
good question ... ask them
SH> Sam Heywood
CU, Ricsi
--
Richard Menedetter <[EMAIL PROTECTED]> [ICQ: 7659421] {RSA-PGP Key avail.}
-=> If at first you don't succeed; Blame everyone else <=-