Here’s my code:
$('#fb_login_form').bind('ajax:loading', function() {alert("loading!");});
.bind('ajax:success', function(data, status, xhr) {alert("success!");})
.bind('ajax:failure', function(xhr, status, error) {alert("failure!");})
.bind('ajax:complete', function() {alert("complete!");});
ajax:success and ajax:complete fire and I see both alerts. ajax:loading does not.
I am using jQuery instead of prototypes. Why?
Please correct your ajax event method name with below link
http://docs.jquery.com/Ajax_Events