I ran into a problem today where IE was caching my AJAX responses so updates wouldn't be displayed and after a bit of hand-wringing over some of the suggested solutions (swapping GETs for POSTs, re-writing the page inPHP, etc), I found a clever little solution - add a time stamp to the GET string.
var t = new Date().getTime(); ... ajaxUrl += '×tamp='+t; ...
Adding this time stamp will differentiate the URL and thereby force IE to reload the Ajax content.
The Moblog has evolved over the last couple years. I've decided to transition my personal blog to my Posterous account (bradleyit.com) and use the Moblog to publish just my cool tech stuff.
0 comments:
Post a Comment