[Zope] building a Javascript array with TAL in ZPT
Etienne Desgagné
etienne.desgagne.1 at ulaval.ca
Fri Mar 11 16:21:50 EST 2005
Hi everyone,
I need to buid a javascript array of this form:
var theArray = new
Array("123|Beth","543|John","234|Ben","43|Leia","76|Steven","45|Rebecca","7686|Travis","3456|Kirk");
but by using TAL in a ZPT. The values come from a ZSQL method. It could look
like this:
var theArray = new Array(
<span tal:repeat="array_elt container/reqZSQL3" tal:omit-tag="">
<span tal:replace="array_elt">1</span><span
tal:condition="not:repeat/array_elt/end" tal:omit-tag="">, </span>
</span>);
but this is not working. (the ZSQL method contain the two columns of value)
Someone have an idea?
Thanks
Etienne
More information about the Zope
mailing list