Using SQLite in HTML5, how do I make a call like the following so that it returns immediately, instead of passing the result to another function?
try {
mydb.transaction( function(transaction) {
transaction.executeSql(
'SELECT name FROM celebs order by name limit 100 ',
[],
function(transaction, results) {
},
errorHandler
);
});
} catch(e) {
alert(e.message);
}
source
share