[whatwg] Offline Web Apps

Robert O'Callahan robert at ocallahan.org
Sun Oct 7 19:28:34 PDT 2007


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.)

"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-0001.htm>

More information about the whatwg mailing list