Make an Ajax call using jQuery in a web Application in IE

When you are using jQuery in Internet Explorer when trying to update content on the fly ,be careful,
because IE caches XMLHttpRequest response and the AJAX call .

1) I was showing pagination of records based on different links clicked,next set of records were shown on the same page.

2) An ajax call is to be made on the link clicked and it will return the next set of records which are to be
loaded into the appropriate div.

3) In Firefox and Chrome,it was working all fine.But in Internet Explorer ,It loaded previous set of records again and it was not loading next set of records on the click of next link.

After some search,I found that in IE,it caches all the ajax calls by dafult. So when you make a new call,previous call is send from the cache that is why you get the result according to the previous call.

So you have to remove the caching in your ajax call.
You can disable caching globally using $.ajaxSetup(), for example:

$.ajaxSetup({ cache: false }); //It will disable cache for all the Ajax call made.

Or if you want to set disable cache for a particular ajax call not for any other ajax call , use :

$.ajax({
cache: false,
//other options...
});
150 150 Burnignorance | Where Minds Meet And Sparks Fly!