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

Re: XMLHttpRequest progress events

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Mon, 24 Apr 2006 22:33:59 +0200
To: Maciej Stachowiak <mjs@apple.com>
Cc: "Web APIs WG (public)" <public-webapi@w3.org>
Message-ID: <bmcq42t4uedcbggq403pmggut2b4ea4msf@hive.bjoern.hoehrmann.de>

* 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.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Monday, 24 April 2006 20:34:45 GMT

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