Re: [Zope] dtml-in, dtml-var, javascript and keeping quotes
13 Sep
2004
13 Sep
'04
12:33 a.m.
Thanks Dieter. . .that did it. Forgot all about good 'ol repr(), and it also will not maul my non- string array keys or values. Thanks again. On 09/12/2004 10:14:11 AM, Dieter Maurer wrote:
Richard Rosenberg wrote at 2004-9-11 23:59 +0000:
Is there a format code (or other way) to do the following:
<script language="JavaScript">
var myArray = new Object(); <dtml-in somelist_of_strings prefix="sl"> myArray[<dtml-var sl_item>]=<dtml-var anotherlist_of_strings[sl_index]> </dtml-in>
</script>
Specifically, I am interested in whether there is a way to force <dtml- var> to render the quotes,
Try: '<dtml-var expr="repr(yourString)">'
-- Dieter
7875
Age (days ago)
7875
Last active (days ago)
0 comments
1 participants
participants (1)
-
Richard Rosenberg