Snipplr - cmndohttp://snipplr.com/users/cmndo/tags/database
Recent snippets posted on Snipplr.comen-usWed, 01 Apr 2015 09:18:14 GMT(JavaScript) Query Local Database with targeted callback and custom arguementshttp://snipplr.com/view/50724/query-local-database-with-targeted-callback-and-custom-arguements/
In a recent iphone webapp I developed, I needed to use safari's Local Database feature. The webapp needed to make a few SQL Queries while performing other actions.
The local database data transaction process makes it difficult to make queries and assign the data you really want. But hey, that's asynchronous event handling for you.
This function allows you to tightly couple an object with the query which will be available in the callback. ]]>Wed, 16 Mar 2011 07:43:10 GMThttp://snipplr.com/view/50724/query-local-database-with-targeted-callback-and-custom-arguements/