I have ajaxified links in my rails project:
<%= link_to 'Click me!', some_url, remote: true %>
I added hooks to listen for ajax events:
$(function(){
$(document).ajaxSend( function(){$('#busy').show()} )
$(document).ajaxComplete( function(){$('#busy').hide()} )
})
This works as expected in FF.
In Chrome, the #busy
div appears as expected when an ajax request is sent, but when the request arrives Chrome goes blank and the console shows a long javascript error message:
jQuery.event.dispatch
elemData.handle.eventHandle
jQuery.event.trigger
(anonymous function)
jQuery.extend.each
jQuery.fn.jQuery.each
jQuery.fn.extend.trigger
... (several hundred lines of pretty much the same stuff)
Why is Chrome barfing on what appears to be a simple addition of an event handler?