[thelist] AJAX Calls Working Intermittently in IE

misterhaan misterhaan at track7.org
Wed Mar 12 10:39:05 CDT 2008

Lee Kowalkowski wrote:
> On 12/03/2008, Ben Dyer <radicalbender at gmail.com> wrote:
>> req.send(null);
>> req.onreadystatechange = function() {
> I'm not certain this is the reason, but I'd set up the
> onreadystatechange event handler before calling send().
I *am* certain that's the reason as I've run into this problem.  Calling 
send() actually starts the request, and it might finish before 
onreadystatechange is set up.

More information about the thelist mailing list