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
Post a Comment