W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2008

[whatwg] SQL storage and onunload

From: Anne van Kesteren <annevk@opera.com>
Date: Sun, 10 Feb 2008 13:17:45 +0100
Message-ID: <op.t6a5rvtp64w2qv@annevk-t60.oslo.opera.com>
On Sat, 09 Feb 2008 22:06:39 +0100, Alexey Proskuryakov <ap at webkit.org>  
wrote:
> On Feb 9, 2008, at 12:58 PM, Anne van Kesteren wrote:
>>> As far as the unload handler question, what are the semantics for XHR?
>>
>> I think the user leaving the page is the same as aborting the download.
>
>    I've seen servers (e.g. Google) use XHR in onunload to track usage  
> statistics. Sounds like a reasonable use case (really, is there a better  
> way?).

How do you determine when you can end the process? It also seems kind of  
icky that the window is already closed (as far as the end user is  
concerned), but that code is still executing on behalf of it. Could be  
that I misunderstood something though.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Sunday, 10 February 2008 04:17:45 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:00 UTC