Re: Multiple Open of the XMLHttpRequest object

On Sun, 29 Oct 2006 14:03:55 +0100, Denis Sureau <dgsureau@yahoo.com>  
wrote:
> "It's not possible per the specification."
>
> Where in the specification?
>
> "What about multiple open invocations?"

This one is still open.


> "What about multiple send invocations?"
> (this is in the working draft)

This one is closed on the public CVS version. An INVALID_STATE_ERR  
exception will be throw as also happens in (some) implementations.


Note that neither having anything to do with multiple requests from the  
same object. They are just about error handling for the particular methods.


> To be clear, I try to implement, if possible:
>  open("POST" ...)
>  send(data)
>  open("GET" ...)
>  send(null)
>
> If it is not possible with actuel browsers this may be defined in a  
> specification for future
> implementations.

I suggest you make two instances of the object. That'll work. I think it  
will work as well if you invoke the second when readyState is 4.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Sunday, 29 October 2006 12:08:15 UTC