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

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -