[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Zope] javascript parsing error


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



_______________________________________________
Zope maillist  -  Zope@xxxxxxxx
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )



This mailing list archive is a service of Copilotco.