[PHPTAL] Lower than as char in javascript
Christian Welzel
gawain at camlann.de
Fri May 30 12:12:04 CEST 2008
Guillaume Lecanu schrieb:
> Is your JavaScript is between a CDATA block ?
This does not work, because we want to use some phptal stuff in the
js code section to generate parts of the code.
As soon as i add CDATA, i get errors like this one: "Unable to find path plane"
An example of our js code section:
<span tal:omit-tag="" tal:repeat="plane plane_values">
p_speed[${repeat/plane/index}] = ${plane/speed};
p_capacity[${repeat/plane/index}] = ${plane/capacity};
</span>
This doesnt seem to work anymore when CDATA is added.
> And it's also a good idea to put JS code in an external file like that :
> <script type="text/javascript" src="code.js"></script>
This is not possible, as we have to generate the js code per page request.
--
MfG, Christian Welzel
GPG-Key: http://www.camlann.de/key.asc
Fingerprint: 4F50 19BF 3346 36A6 CFA9 DBDC C268 6D24 70A1 AD15
More information about the PHPTAL
mailing list