Hi,

I have a list backed action form and want to call a javascript function with
one of the parameters to the function being a value from the list backed
action form. 

My js function is as such:

<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 value I want substituted into the function is <%="benefits[" +
index.intValue() + "].value"%>

My input text tag is as such which calls the function:

<input type="text" name="<%="benefit["+index.intValue()+"].value"%>"
value="" size="20" onblur="<%=jsFunction%>"/>

Can anyone help with explaining how to get the value from the input text box
of the form and send it to the function. The text boxes name is dynamic thus
causes me problems.

The html source shows the following: benefit[0].value in the function and
not the actual value.

Thanks

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

Reply via email to