commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Horman <jhor...@musicmatch.com>
Subject [jelly] javascript error on website
Date Sat, 21 Dec 2002 01:12:47 GMT
The jelly website has a Javascript error:

Line: 22
Error: Unterminated string constant

This is on Internet Explorer version 6.0.28.

The problem seems to be in this block:

              if (document.layers) {
                document.writeln("
                  &lt;link rel='stylesheet' type='text/css'
href='./style/ns4_only.css' media='screen' /&gt;
                  &lt;link rel='stylesheet' type='text/css'
href='./style/maven_ns4_only.css' media='screen'/&gt;
                ");
              }

I think it should be:

              if (document.layers) {
                document.writeln("&lt;link rel='stylesheet' type='text/css'
href='./style/ns4_only.css' media='screen' /&gt;" +
		                  "&lt;link rel='stylesheet' type='text/css'
href='./style/maven_ns4_only.css' media='screen'/&gt;");
              }

Using the + as a multiline joiner.

It also looks like the font is bigger than it should be, which may be
related to the Javascript error.

-jason horman
This email message and any attachments are for the sole use of the intended
recipient(s) and may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited. If you
are not the intended recipient or his/her representative, please contact the
sender by reply email and destroy all copies of the original message.

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message