We have two input fields which both takes a integer. Both fields has its own Form.Element.EventObserver, which fires a asynchronous AJAX call to the server when the field value is changed (on blur). Then some calculation is done on the server side, before a javascript is sent back as a callback, and updates several fields on the page. It works fine untill the two fields is set to update each other.
Lets say we have the input fields A and B. First we set A to 500, which fires an event that ends up updating B to 2000. Then we change B to 1000, which updates A to 250. If we then try to set A to 500 again, nothing happens. EventObserver remembers the last value of the input field, so the event is only fired if the value is actually changed. In our case A has been updated by the callback function of B's EventObserver from 500 to 250, while A's own EventObserver still thinks the last value was 500. So when we change A back to 500, its EventObserver does not fire the expected event. Any ideas on how to solve this problem in a orderly manner? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---