W3C home > Mailing lists > Public > public-html-comments@w3.org > December 2008

Re: HTML5 Database / transaction ordering

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 4 Dec 2008 21:09:39 +0000 (UTC)
To: cmate <cmate@hotmail.com>
Cc: public-html-comments@w3.org
Message-ID: <Pine.LNX.4.62.0812042109150.17401@hixie.dreamhostps.com>

On Thu, 4 Dec 2008, cmate wrote:
> 
> I have the same issue, how can I execute database transactions 
> synchronously so I can for example do an insert, make sure it worked 
> before I continue my code, or execute a query and make sure I actually 
> loaded a value before I continue my code??

Put the continuation of your code in the statement's callback.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 4 December 2008 21:10:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 1 June 2011 00:13:59 GMT