W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2007

[whatwg] Offline Web Apps

From: Robert O'Callahan <robert@ocallahan.org>
Date: Mon, 8 Oct 2007 15:28:34 +1300
Message-ID: <11e306600710071928g12fd8f2fg38efe10cfd72f594@mail.gmail.com>
Ooops....

On 9/25/07, Maciej Stachowiak <mjs at apple.com> wrote:

> On Sep 24, 2007, at 10:45 PM, Robert O'Callahan wrote:
> So I suspect that, much like synchronous XMLHttpRequest, synchronous file
> reads will lead to excessive UI lockups in bad circumstances unanticipated
> by the app author.
>

The file size is accessible to the app author. But OK, lets add an
asynchronous API.

What's the best way to do that?  Add an onread event to File and, say, "void
read(long offset, long length)"? Or something with an explicit callback such
as setTimeout has? (Although I'm not sure how we write such things in
standard IDL.)

Rob
-- 
"Two men owed money to a certain moneylender. One owed him five hundred
denarii, and the other fifty. Neither of them had the money to pay him back,
so he canceled the debts of both. Now which of them will love him more?"
Simon replied, "I suppose the one who had the bigger debt canceled." "You
have judged correctly," Jesus said. [Luke 7:41-43]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20071008/95509c5f/attachment.htm>
Received on Sunday, 7 October 2007 19:28:34 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:37 UTC