W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2009

Re: Using progress events for other purposes

From: Simon Pieters <simonp@opera.com>
Date: Mon, 19 Oct 2009 10:25:55 +0200
To: "Ian Hickson" <ian@hixie.ch>, "Charles McCathieNevile" <chaals@opera.com>
Cc: "WebApps WG" <public-webapps@w3.org>
Message-ID: <op.u11gdhxoidj3kv@simon-pieterss-macbook.local>
On Mon, 19 Oct 2009 10:24:37 +0200, Ian Hickson <ian@hixie.ch> wrote:

>> > So in a hypothetical system that gives progress for multiple large
>> > files in a row, you can't have a case where some of the files have
>> > unknown sizes?
>>
>> Yes, you can.
>
> How?

If I understand Chaals' proposal correctly, you'd set lengthComputable to  
false, loaded to the number of bytes having been downloaded for the  
current file, total to 0, loadedItems to the number of files that have  
finished, and totalItems to the total number of files.

-- 
Simon Pieters
Opera Software
Received on Monday, 19 October 2009 08:26:34 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:34 GMT