- From: Anne van Kesteren <annevk@opera.com>
- Date: Mon, 12 May 2008 09:17:56 +0200
- To: "Aaron Boodman" <aa@google.com>
- Cc: "Chris Prince" <cprince@google.com>, "Web API WG (public)" <public-webapi@w3.org>
On Mon, 12 May 2008 01:08:48 +0200, Aaron Boodman <aa@google.com> wrote:
> Ok, so just so I'm clear, does the following example snippet
> accurately reflect how you propose that things work?
>
> var req = new XMLHttpRequest();
> req.open("GET", "example", true);
> req.onreadystatechange = handleResult;
> req.send(null);
>
> function handleResult() {
> if (req.readyState != 4) return;
>
> var b1 = req.responseByteArray;
FWIW, XMLHttpRequest Level 2 already has this functionality in the form of
responseBody:
http://dev.w3.org/2006/webapi/XMLHttpRequest-2/
(send() is also accepts a ByteArray now.)
--
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Monday, 12 May 2008 07:18:40 UTC