Do you mean to catch the response from server using javascript and update
the textfields using javascript?

The solution seems to be appropriate under circumstances when we have few
fixed number of textfields. How about the condition when those text fields
are the part of the row of a table and we need to distribute the value given
in the master textfield to the textfields of rows and the figure changed is
any of these textfields have to trigger the distributing functionality
Do you still suggest to use the same technique for that or did i
misunderstood your technique?




On 2/25/08, Jeromy Evans <[EMAIL PROTECTED]> wrote:
>
> 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]
>
>


-- 
Thanks,
Prashant Khanal
[EMAIL PROTECTED]
Solutions for your information
_________________
Yomari Pvt. Ltd.
HB Complex, Ekantakuna, Lalitpur.
G.P.O. Box: 21295
Kathmandu, Nepal
Tel: 977 (1) 5000111, 2113000
Fax: 977 (1) 5000157
http://www.yomari.com
____________________
Your guide to Nepal on the Net.
http://www.nepalhomepage.com

Reply via email to