On Sun, 11 Jun 2000 23:03:52 -0400, Roger Turk wrote:
> Sam,
> I just went to a site that had javascript (www.hninc.com) and got a blank
> screen. I then brought up the source (F6) and saw that it had javascript and
> edited (F4) it as follows:
> Immediately *after* <script Language=Javascript>, I put, "<!--" (without the
> quotes, of course). I then went to the line that had </script> and
> immediately *before* this, I put "-->". Hit F2 (save and view) and it
> brought up the paragraph that was originally missing. There were two links,
> one for using a "Flash" plug-in, and the other for HTML. Clicking on the
> HTML link brought me to their home page. (It seems to me that the start of
> the comment is <!-- [two dashes only and a space between the second dash and
> any text] and the end is --> [two dashes again and a space between any text
> and the first dash].)
Yes, I too know how to comment out Java Script, and then save and view the
page so that it may be displayed properly with Arachne. I frequently
encounter the kind of thing you describe and I use the same work-around as you.
I put "<!--" immediately *before* where it says
"<SCRIPT LANGUAGE="JavaScript">" and I put "-->" immediately *after* where it
says "</SCRIPT>". Either way I don't suppose it matters. BTW, it doesn't
matter how many dashes or spaces you use. You may comment out anything, even
legitimate and conventional HTML by the same method.
>> From what I understand, and I am no expert or even experienced with JS, JS
> will ignore any comment lines between <script language=javascript> and
> </script>, i.e., it will read and execute the code contained within the
> comment delimiters.
The comment lines may be used to comment out an entire block of *anything*
identified by any tag identifier. It is only important to place the comment
lines just before or after the starting and ending tag identifier. Also you
may use the comment lines to comment out a single line or several lines found
within a tagged block.
> Try it with the URL above. The source page is not long, and there is only
> one JS in it.
No need to try the URL because I have encountered many others just like it.
Thanks anyway.
Sam Heywood
-- This mail was written by user of Arachne, the Ultimate Internet Client