Re: [OT] calling js function with list backed form value

2006-05-04 Thread vijay venkataraman
List Subject: Re: [OT] calling js function with list backed form value Hi Try replacing the code javascript:calculate('<%="benefits[" + index.intValue() + "].value"%>',...with javascript:calculate('<%= benefits[index.intValue()].value%>',

RE: [OT] calling js function with list backed form value

2006-05-04 Thread Shoukat, Faisal
Unfortuately as before it just prints out benefits[index.intValue()].value and not the actual value. -Original Message- From: siva sajja [mailto:[EMAIL PROTECTED] Sent: 04 May 2006 15:12 To: Struts Users Mailing List Subject: Re: [OT] calling js function with list backed form value Hi

Re: [OT] calling js function with list backed form value

2006-05-04 Thread siva sajja
riginal Message- From: vijay venkataraman [mailto:[EMAIL PROTECTED] Sent: 04 May 2006 13:12 To: Struts Users Mailing List Subject: Re:[OT] calling js function with list backed form value In your JS function can you add 'this' as one of the parameter. Then in your js function you c

RE: [OT] calling js function with list backed form value

2006-05-04 Thread Shoukat, Faisal
ECTED] Sent: 04 May 2006 13:12 To: Struts Users Mailing List Subject: Re:[OT] calling js function with list backed form value In your JS function can you add 'this' as one of the parameter. Then in your js function you can get the value from the element. Like which implies the element on

Re: [OT] calling js function with list backed form value

2006-05-04 Thread siva sajja
Hi Here you are using a normal input tag from html which has no knowledge of any of the struts functionalities(mapped back properties). Use html:text instead Cheers, Siva. Shoukat, Faisal wrote: >Hi, > >I have a list backed action form and want to call a javascript function with >one of the p

Re:[OT] calling js function with list backed form value

2006-05-04 Thread vijay venkataraman
In your JS function can you add 'this' as one of the parameter. Then in your js function you can get the value from the element. Like which implies the element on which the event occured. Note: I have never used and don't know much about it. My thoughts. Thanks, Vijay Venkataraman Shoukat

calling js function with list backed form value

2006-05-04 Thread Shoukat, Faisal
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: javascript:calculate('<%="benefits[" + index.intValue() + "].value"%>', '',