Detecting Ajax requests

View: New views
1 Messages — Rating Filter:   Alert me  

Detecting Ajax requests

by claye :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Anyone know if there is a way to detect AJAX requests, possibly using XMLHttpRequest?

Here is why I ask: I am using a .NET application that is 100% AJAX, but the developers did a horrible job, and the requests take a VERY long time. I just want to load an animated loading gif or set the cursor to "wait" while requests are being sent and received so that I'm not sitting like a fool for 60 seconds after ever click I make, wondering if anything is happening or not.