W3C home > Mailing lists > Public > public-webapi@w3.org > May 2008

Re: Blobs: An alternate (complementary?) binary data proposal

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>
Message-ID: <op.ua04760q64w2qv@annevk-t60.oslo.opera.com>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 12 May 2008 07:18:41 GMT