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

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

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -