On Mon, 12 Jun 2000 16:45:32 +0200 (CEST), [EMAIL PROTECTED] (Richard Menedetter)
wrote:
> 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.
I know that Java is *supposed* to run on any platform, but I frequently
encounter Java Script with MSIE on my Window$ 95 computer that completely
crashes it down. Either my computer is attempting to run very badly written
Java Script, or the script is not compatible with my platform or browser
version. (I run an old version of MSIE, 3.01).
> 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.
Sidturbed? I suppose you meant to say "disturbed", of course <vbg>
OK, I think I now understand all of what you are telling me in all of
your clarifications given above. Thanks.
> 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
Now I'm agreeing with Jake's recent post in which he stated that he
questions the title of this thread. Anyone replying to my post should
feel encouraged to change the subject title.
All the best,
Sam Heywood
-- This mail sent by Arachne, www graphical browser for DOS