Problem with zope and long strings - SOS
Hi ! My problem is that: I want to js.alert with long strings. I create these strings, and the complete js code. But zope is wrapping my strings like that: <script> function aaa{ jscode... s="xxxxxxx ........ "; jscode... }; </script> Everytime it is do that, so I cannot prevent that. But this format the JS interperter is making errors. Please help me: how to prevent the long string wrapping ? Thanx for help. Regards: KK PS: Please answer to me to my private mail too, because I'm in digest mode, but the answer is needed to advance.
kepes.krisztian wrote at 2004-8-6 14:41 +0200:
My problem is that: I want to js.alert with long strings. I create these strings, and the complete js code. But zope is wrapping my strings like that:
<script> function aaa{ jscode... s="xxxxxxx ........ "; jscode... }; </script>
Usually, Zope does not break lines even when they get long. Note, however, that in some cases you must prevent newlines around DTML constructs as they may end up in the generated code. You can do something like: <dtml-XXXX ... ><dtml-YYYY...> I.e., you put the newline into the DTML construct. The DTML parser does not allow newlines at all places but before the ">" is at least possible. -- Dieter
participants (2)
-
Dieter Maurer -
kepes.krisztian