Re: [whatwg] SQL storage and onunload

2008-02-12 Thread Geoffrey Garen
It seems to be a natural idea to save Web application state from an unload event handler. But is it guaranteed that client-side database API is still functional at this point? And if it is - can one queue up more statements and/or transactions from statement callbacks? I see two options

Re: [whatwg] SQL storage and onunload

2008-02-10 Thread Anne van Kesteren
On Sat, 09 Feb 2008 22:06:39 +0100, Alexey Proskuryakov [EMAIL PROTECTED] 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

Re: [whatwg] SQL storage and onunload

2008-02-09 Thread Anne van Kesteren
On Fri, 08 Feb 2008 18:24:58 +0100, Brady Eidson [EMAIL PROTECTED] 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. -- Anne van Kesteren http://annevankesteren.nl/ http://www.opera.com/

Re: [whatwg] SQL storage and onunload

2008-02-09 Thread Alexey Proskuryakov
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

[whatwg] SQL storage and onunload

2008-02-08 Thread Alexey Proskuryakov
It seems to be a natural idea to save Web application state from an unload event handler. But is it guaranteed that client-side database API is still functional at this point? And if it is - can one queue up more statements and/or transactions from statement callbacks? There needs to

Re: [whatwg] SQL storage and onunload

2008-02-08 Thread Brady Eidson
Though it would be very nice to have defined semantics wrt the unload handler, I always thought this work could be done with the beforeonunload handler, instead. As far as the unload handler question, what are the semantics for XHR? Seems the application of saving some application state

Re: [whatwg] SQL storage and onunload

2008-02-08 Thread Alexey Proskuryakov
On Feb 8, 2008, at 8:24 PM, Brady Eidson wrote: Though it would be very nice to have defined semantics wrt the unload handler, I always thought this work could be done with the beforeonunload handler, instead. I am not sure if this helps much - you can create a transaction from

Re: [whatwg] SQL storage and onunload

2008-02-08 Thread Brady Eidson
On Feb 8, 2008, at 9:44 AM, Alexey Proskuryakov wrote: On Feb 8, 2008, at 8:24 PM, Brady Eidson wrote: Though it would be very nice to have defined semantics wrt the unload handler, I always thought this work could be done with the beforeonunload handler, instead. I am not sure if