Why might I not be getting jQuery global ajax events when using jquery-ujs and Rails? -


example:

$('form').on('ajax:success', function() {  /* fired */ });  $('form').on('ajaxsuccess', function() {  /* not fired */ }); 

'ajax:success' documented here : https://github.com/rails/jquery-ujs/wiki/ajax

reading jquery documentation on ajax events leads me believe any dom element eligible events (ie: ajaxsuccess). there not seem documentation in jquery-ujs indicate "normal" jquery ajax events not fired.

jquery doc excerpt http://api.jquery.com/ajax_events/

global events

these events broadcast elements in dom, triggering handlers may listening. can listen these events so:"


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 -