Re: HTML5 Database / transaction ordering

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 UTC