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 -

php - Boolean search on database with 5 million rows, very slow -

css - Text drops down with smaller window -