On Mon, 12 May 2008 01:08:48 +0200, Aaron Boodman <[EMAIL PROTECTED]> 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/>