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%>',
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
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
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
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
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
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"%>',
'',
7 matches
Mail list logo