[Zope] javascript parsing error

Mark A. Lilly marq@europa.com
Tue, 7 May 2002 06:38:31 -0700


Hello,

There is a line of Javascript i have which i am including in a page template
(i get the same error using it via DTML) which is this:

for (var y=0; y < 12; y++)   <--this is correct-->

for (var y=0; y &lt; 12; y++)   <--this is what the script debugger shows-->
                ^^^^
i get an error which says i need a parenthesis before '12'.  It is saying
this, i believe, because the parser is translating the '<' from the original
Javascript to '&lt;' and then the browser is not reinterpreting that as '<'

The exact same code works fine when i run it straight from Apache.
Something in the Zope HTMLParser seems to change the Javascript so that it
doesn't work.

Is there a way to leave the original code alone?

Thanks,
mark