IE temporary Internet files
IE temporary Internet files
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!
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!
This discussion has been closed.
Replies
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
Thank you so much.