Essentially, I’d like to create interface elements that act or change any time any AJAX request is made in the application (loaders, etc.).
I feel like I’m overlooking something, but I can’t seem to find a way to listen for such an event globally and act on it.
If there isn’t, is there a way to hook such an event into jQuery to accomplish this task?
You could use the
ajaxStartandajaxCompletemethods. And here’s a list of all global ajax event handlers at your disposal.