I have an big JavaScript application with a lot of ajax in there (third-party script). Now I need to intercept all ajax events, i.e. when a message from server comes back with transport text or message, i want this text / message to do replacements.
problem: i tried with this, but it never reacts on any ajax event. It's from the jquery examples page and this #msg thing looks like a placeholder for something:
$("#msg").ajaxSuccess(function(evt, request, settings){
alert('ajax event');
$(this).append("<li>Successful Request!</li>");
});