[Zope] Re: javascript & zpt
Jean Jordaan
jean@upfrontsystems.co.za
Mon, 07 Jul 2003 13:33:19 +0200
Hi Exteam
In the footer of every mail from the zope lists, you may see this
sentence:
** No cross posts or HTML encoding! **
So please: no cross posts or HTML encoding.
Regarding your question. You send code like:
"""
<tr tal:define="t1 request/t1|nothing;
t2 request/t2|nothing;
t3 request/t3|nothing">
<td width="14%">
<input type="text" name="t1"
onchange="addition(t1.value,t2.value,t3)"
"""
It looks as though you want to use TAL-defined variables (t1, t2, t3)
in your javascript. This is how to do that:
"""
<input type="text" name="t1"
onchange="replaced by TAL"
tal:attributes="onchange string:addition(${t1}.value,
${t2}.value,
${t3})"
"""
--
Jean Jordaan
http://www.upfrontsystems.co.za