19 May
2006
19 May
'06
10:46 a.m.
On 18/05/06, Justin <rocketfuel@spaceship.com> wrote:
Reading the MS docs, I learned that it is the send() method which will update the ready state, and so the handler should be set between the open() and send() calls.
I think onreadystate change should be set before open(). See http://www.w3.org/TR/XMLHttpRequest/#dfn-readystate
If there is no disagreement, I'd be happy to submit a patch for this change.
Go for it :) I'll also take this moment to say I'd still like the two functions to be rolled into one multi-purpose function - preferably by passing an object for all the options (similar to prototype.js). -- David Carrington