W3C home > Mailing lists > Public > public-webapi@w3.org > October 2006

Re: Multiple Open of the XMLHttpRequest object

From: Anne van Kesteren <annevk@opera.com>
Date: Sun, 29 Oct 2006 13:08:02 +0100
To: Denis Sureau <dgsureau@yahoo.com>
Cc: "Web APIs WG (public)" <public-webapi@w3.org>
Message-id: <op.th6mnoxu64w2qv@id-c0020.oslo.opera.com>

On Sun, 29 Oct 2006 14:03:55 +0100, Denis Sureau <dgsureau@yahoo.com>  
> "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
Received on Sunday, 29 October 2006 12:08:15 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:22 UTC