jquery - How do I customise the ajax call when using form_tag's 'remote' in Rails? -
since ujs assigning event handler including jquery ujs source, how override of $.ajax settings specific call?
so many examples use global methods. preferred method?
(i asked earlier question thought customisation available through data-* attributes.)
you can bind specific element's ajax success by:
$element.bind("ajax:success", function(xhr, data, status){ dosomestuff(); });
Comments
Post a Comment