I have a big problem. I know it\'s about callback, closure but I don\'t know how to solve the problem. Here is my code
$.Model.extend(\'Article\',
{
fin
The W3C web database spec talks about support for both Asynchronous and Synchronous database operations. (See 4.3 and 4.4)
If you can't use a synchronous implementation, then you might want to consider approaching the problem like this instead:
$.Model.extend('Article',
{
findAll : function(params, success, error){
var result = []
db.transaction(function(tx) {
tx.executeSql('select * from contents', [],function(tx, rs) {
for(var i=0; i