I am using jQuery to dynamically load data through ajax. Whenever the user initiates an ajax request (i.e.. Presses a button or loads a page, etc.), I show the ajax gj loader. After completing ajax requests (or errors), I hide the bootloader image.
This works great most of the time. But I noticed (e.g. in IE7) that ajax calls that are sent to load the page get cached (I think). That way, basically, when I refresh the page and apparently the ajax call starts up, IE loads the cached data. As a result, a successful (or erroneous) callback in the jQuery .ajax() function is never called, and the loader image remains undefined. How can this be done?
source share