Hi,

I am using a list backed action form and need some advice on how to get the
value from the html:text box so I can do some logic with it in a javascript
function.

In my case I have the following:

<html:text property="<%="benefits["+index.intValue()+"].value"%>" size="20"
onblur="<%=jsFunction%>"/>

My jsFunction is as follows:

<bean:define id="jsFunction">
 javascript:calculate('<%="benefits[" + index.intValue() + "].value"%>',
                    '<bean:write name="benefit" property="benMaxRange"/>',
                    '<bean:write name="benefit" property="benMinRange"/>',
                    '<bean:write name="benefit" property="benRange"/>',
                    '<bean:write name="benefit" property="label"/>')
       </bean:define>

The problem I am having is how to get the actual value entered in the text
box and pass this into the function (i.e 12000 instead of what is actually
being sent which is <%="benefits[0].value"%>). So it would be the parameter
<%="benefits[" + index.intValue() + "].value"%> of the calculate function.

Thanks in adavce
Faisal

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to