struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Satish Jeejula <Jeeju...@ia.com>
Subject RE: Help with JavaScript in Stuts
Date Wed, 13 Feb 2002 23:51:53 GMT
Supriya,

I assuming that update() function will return 'true' or 'false'.

So in your jsp page the syntax of using java script will be ....

<html:text .... onchange="javascript:return update(...)">

hope this helps.

Satish

-----Original Message-----
From: SUPRIYA MISRA [mailto:supriya_misra@hotmail.com]
Sent: Wednesday, February 13, 2002 3:33 PM
To: struts-user@jakarta.apache.org
Subject: Help with JavaScript in Stuts


How does one incorporate onchange JavaScript Handler on a html:text tag?

I want onchange="update(1,3,4)" on a html:text tag.

3,4 is a string that comes from the form

This is failing :-----

<logic:iterate id="actHour"  name="currentForm" type="fal.ActivityHour" 
property="actHourArray">

<html:text size="6" maxlength="4"   name="actHour" property ="faHrsDay1" 
indexed="true"
onchange="update(1,<bean:write name="actHour" property="value"/>)"/>

<logic:iterate>

also tried
onchange="update(1,<%=actHour.value%>)" but the scriptlet is transferred as 
it is.

Any suggestions?



_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message