How to intercept all jquery ajax events?
<p>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.</p>

<p>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 <em>something</em>:</p>

<pre><code>$("#msg").ajaxSuccess(function(evt, request, settings){
   alert('ajax event');
   $(this).append("&lt;li&gt;Successful Request!&lt;/li&gt;");
});
</code></pre>
