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

Re: XMLHttpRequest progress events

From: Jonas Sicking <jonas@sicking.cc>
Date: Tue, 25 Apr 2006 01:20:32 -0700
Message-ID: <444DDBD0.9040002@sicking.cc>
To: Bjoern Hoehrmann <derhoermi@gmx.net>
Cc: Maciej Stachowiak <mjs@apple.com>, "Web APIs WG (public)" <public-webapi@w3.org>

Bjoern Hoehrmann wrote:
> * Maciej Stachowiak wrote:
>>> It rather seems like a bad idea to report progress of multi-gigabyte
>>> downloads with byte-precision. DOM Level 3 Load and Save does not de-
>>> fine that the attributes represent a number of octets.
>> What precision would you propose? It has to be defined to be able to  
>> give a size to the user.
> What are the use cases for that exactly? You can determine a percentage
> of progress no matter whether the numbers are in bytes or gigabytes or
> whatever, and it is not clear to me that the numbers would be meaning-
> ful if, say, the user agent is behind a data compression proxy, or how
> any specific unit would be appropriate if you could use a protocol where
> you don't know the totalSize until late in the transfer, and consider
> cases where multi-gigabyte resources might be transferred with XHR. If
> the concern is making [ x bytes of y bytes ] style widgets, I'd suggest
> we agree on use cases first, and then discuss syntax.

In many cases the user might know the size even if the implementation 
does not. Or it is even imaginable that the script knows the size even 
if the XHR class does not. In both these cases the number of bytes 
transferred is useful to present.

/ Jonas
Received on Tuesday, 25 April 2006 08:25:03 UTC

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