IE temporary Internet files

IE temporary Internet files

Unknown Posts: 0Questions: 0Answers: 0
edited September 2009 in General
Hi, all,

I use Datatables sAjaxSource to fetch data from remote server, it works well under Firefox, but it has a boring problem in IE. If I delete one row and reload my page, IE will not fetch data from remote side, it just get data from IE temp files, so it seems the row is not deleted.

Does anyone have experience/idea to solve this problem?

Thanks!

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Hi sandy,

    Sounds like you are running into the standard IE cache issue with GET requests for Ajax files. Quickest way to fix it is just to stick a GET variable on the end of your URL with a random number as the value. For example "/xhr.php?random="+Math.floor(Math.random()*1001). And that should do the trick for you. Another method is to use POST rather than GET, but that would involve hacking the DataTables core.

    Regards,
    Allan
  • Unknown Posts: 0Questions: 0Answers: 0
    Thanks Allan for your quick response! It works now! :)
  • icsbcnicsbcn Posts: 5Questions: 0Answers: 0
    I had the same problem and I solved it the same way.

    Thank you so much.
This discussion has been closed.