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

Re: XMLHttpRequest progress events

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Mon, 24 Apr 2006 11:29:38 -0500
Message-ID: <444CFCF2.3030605@mit.edu>
To: Maciej Stachowiak <mjs@apple.com>
CC: "Web APIs WG (public)" <public-webapi@w3.org>

Maciej Stachowiak wrote:
> I understand that as an implementor you don't want to sit around waiting 
> for standards bodies to include features in a spec before implementing 
> them. However, since there is an active, open and healthy standards 
> process going on here, you may want to try participating in it more 
> actively before taking that approach.

Well, that's what I was trying to do with my initial mail.  ;)

Here goes:

--------------------------------------------------------------------------
Listeners registered for the "progress" event on the XMLHttpRequest object may 
receive events implementing the LSProgressEvent interface as data is returned 
from the server.  This event will have a null |input| property.  The |totalSize| 
property will be 0xFFFFFFFF if the total size is not known.

Listeners registered for the "uploadprogress" event on the XMLHttpRequest object 
may receive events implementing the LSProgressEvent interface as the request is 
sent to the server.  This event will have a null |input| property.  The 
|totalSize| property will be 0xFFFFFFFF if the total size is not known.

Implementations are not required to fire these events, but are strongly urged to 
so that XMLHttpRequest consumers can implement progress indicators as desired. 
If progress events are fired, there is no specific requirement for how often 
they should be fired.
--------------------------------------------------------------------------

That pretty much sums up the Gecko implementation as I understand it (modulo 
some 32-bit/64-bit messiness; I'm not sure whether the DOM actually specifies 
what numeric type "unsigned long" is, but maybe I'm missing it).

-Boris
Received on Monday, 24 April 2006 16:29:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:54 GMT