Document Ready with Global Ajax Listener and Status Indicator

/ Published in: jQuery
Save to your folder(s)

This will monitor the status of all ajax calls on the page. When ajax starts i show an animated spinner gif and display a message that ajax has been requested. On completion of a call the status returned is displayed and the spinner is hidden to indicate the process is complete. This is without an extra line of code in any of the functions that call ajax, and applies globaly to all functions that make ajax calls on the page.

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.