Tag Archives: ajax

handling ajax callbacks in rails3 using jquery

Previously, in rails 2.3.8 i used the prototype-helpers link_to_remote and form_remote_for (amongst others). These had the option to add callbacks as follows: (an example from the documentation). This example would, upon success update the html-element with class “cart”, and upon failure the class “error”. The possible callbacks were: :loading: Called when the remote document is […]