Dibesh Shakya wrote:
Hello all,
I have 3 text fields say A, B and C out of which A is a master text field
whose value is distributed between remaining text fields.
My requirement is if i give value say 20 to field say A then an action is
called which will distribute the values between other text fields. How can i
implement this using Ajax?
I searched for this through entire forum but could not find any help for my
problem.

Attach a listener to text field A using javascript. On the event (eg. keypress) make a request using your favourite ajax library. Update the other text fields in your asynchronous callback using the content/data received from your action.

Any ajax library will easily allow you add a listener, call an action, and process the asynchronous result. The catch is you have to use the library directly, not Struts.

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

Reply via email to