[Zope] javascript & zpt
Exteam
exteam6@yahoo.co.in
Mon, 7 Jul 2003 12:28:10 +0100 (BST)
--0-2051669946-1057577290=:84190
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
hi
sorry that is not onfiltered but it is onchange.
thanks
exteam
Exteam <exteam6@yahoo.co.in> wrote:
HI
i have a zpt file like this
<div metal:define-macro="f1a_macro">
<form name="f1a0" method="post" action="f1a_redirect">
<table tal:define="form here/f1a0" align=center border="1" width="380" height="628">
<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)"
tal:replace="structure python:form.t1.render(t1)" size="10" value="0" />
</td>
<td width="14%"> <input type="text" name="t2" onchange="addition(t1.value,t2.value,t3)"
tal:replace="structure python:form.t2.render(t2)" size="10" value="0" />
</td>
<td width="14%"> <input type="text" name="t3"
tal:replace="structure python:form.t3.render(t3)" size="10" value="0" />
</tr>
<script language="JavaScript">
function addition(arg1,arg2,arg3)
{
var added = parseInt(arg1) + parseInt(arg2);
arg3.value = added;
}
</script>
</form>
</div>
but this is not working ,
what is the problem.
my reqiurement is very simple
ihave defined these textfields (t1,t2,t3)in formulator.
what is the problem,
plz help me
thanks
exteam
SMS using the Yahoo! Messenger; Download latest version.
SMS using the Yahoo! Messenger;Download latest version.
--0-2051669946-1057577290=:84190
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
<DIV>
<DIV>hi</DIV>
<DIV>sorry that is not onfiltered but it is onchange.</DIV>
<DIV>thanks</DIV>
<DIV>exteam<BR><BR><B><I>Exteam <exteam6@yahoo.co.in></I></B> wrote: </DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<P>HI <BR>i have a zpt file like this<BR><div metal:define-macro="f1a_macro"></P>
<P><form name="f1a0" method="post" action="f1a_redirect"></P>
<P><table tal:define="form here/f1a0" align=center border="1" width="380" height="628"></P>
<P><tr tal:define="t1 request/t1|nothing; t2 request/t2|nothing; t3 request/t3|nothing"></P>
<P><td width="14%"> <input type="text" name="t1" onchange="addition(t1.value,t2.value,t3)"</P>
<P>tal:replace="structure python:form.t1.render(t1)" size="10" value="0" /></P>
<P></td></P>
<P><td width="14%"> <input type="text" name="t2" onchange="addition(t1.value,t2.value,t3)"</P>
<P>tal:replace="structure python:form.t2.render(t2)" size="10" value="0" /></P>
<P></td><BR><td width="14%"> <input type="text" name="t3" <BR>tal:replace="structure python:form.t3.render(t3)" size="10" value="0" /></P>
<P></tr></P>
<P><script language="JavaScript"></P>
<P>function addition(arg1,arg2,arg3) </P>
<P>{</P>
<P>var added = parseInt(arg1) + parseInt(arg2);</P>
<P>arg3.value = added;</P>
<P>}</P>
<P></script></P>
<P></form></P>
<P></div></P>
<P> </P>
<P>but this is not working ,</P>
<P>what is the problem.</P>
<P>my reqiurement is very simple</P>
<P>ihave defined these textfields (t1,t2,t3)in formulator.</P>
<P>what is the problem,<BR>plz help me</P>
<P>thanks</P>
<P>exteam</P>
<P><FONT face=arial size=-1><IMG height=22 alt="Yahoo! India Mobile" src="http://in.yimg.com/i/in/mobile/pctomob.gif" width=28 border=0></A> <A href="http://in.mobile.yahoo.com/new/pc/" target=_blank><B>SMS</B></A> using the Yahoo! <A href="http://in.mobile.yahoo.com/new/pc/"><B>Messenger</A>;</B></FONT> <FONT face=arial size=-1><B><A href="http://in.messenger.yahoo.com/">Download</B></A> latest version.</FONT></P></BLOCKQUOTE></DIV><p><font face=arial size=-1><img src="http://in.yimg.com/i/in/mobile/pctomob.gif" width=28 height=22 border=0 alt="Yahoo! India Mobile"></a>
<a href="http://in.mobile.yahoo.com/new/pc/" target="_blank"><b>SMS</b></a> using the Yahoo!
<a href="http://in.mobile.yahoo.com/new/pc/"><b>Messenger</a>;</b></font>
<font face=arial size=-1><b>
<a href="http://in.messenger.yahoo.com/">Download</b></a> latest version.</font>
--0-2051669946-1057577290=:84190--