Re: Using progress events for other purposes

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 UTC