[thelist] ie caching ajax

Lee Kowalkowski lee.kowalkowski at googlemail.com
Thu May 8 06:17:04 CDT 2008


On 07/05/2008, Brian Cummiskey <Brian at hondaswap.com> wrote:
> Hi all,
>
> I have an ajax app that I spent a lot of time fine tuning for an ajax post.
>
> Works flawless in firefox, safari.
>
> In ie7, it works flawless the first time.
>
>    xmlHttp.onreadystatechange = alertContents;
>    xmlHttp.open('POST',url,true);

Hmm, try swapping those two lines around, are you re-using your XHR
object or creating a new one every time?
[http://keelypavan.blogspot.com/2006/03/reusing-xmlhttprequest-object-in-ie.html]
 - Might be alright if you're only interested in a ready state of 4.

-- 
Lee



More information about the thelist mailing list