I have a quite complex form with about 20 fields that are related and computed to update page with RJS. Some fields have relations to 2-3 other fields, others are just dependent from another field.
At the moment I am using a observe_form to send the parameters back to the server, perform some calculation and update the the page with RJS, which works perfectly well.
But to me it doesn't look like I really had to send all fields every time the form changes (and thats the behavior of observe_form) as there are quite a lot fields generating (unnecessary) traffic on the internal net.
For my understanding, ajax should only be used to get 'new' information from the server...
Advantages of sending all parameters back to the server is it allow to use ruby instead of js and the client doesn't see logic and is not able to manipulate it.
What do you think is more adequate, using client-side js or stick with ajax ?