Im quite new to this object oriented java script programming.
html5rocks.webdb.insertuser = function(username){
    var db = html5rocks.webdb.db;
    var id;
    db.transaction(function(tx){
        var addedOn = new Date();
        tx.executeSql("INSERT INTO user(name) VALUES (?)",
            [username],
            html5rocks.webdb.onSuccess,
            html5rocks.webdb.onError);
    });
}
here is my code which i got by following a nice tutorial at http://www.html5rocks.com/en/tutorials/webdatabase/todo/
Now the thing i understood is this "onSuccess" is called as a call back. So if i want to get the value as the return parameter of whole function i need to use some sort of a blocking. I would like to know a way to get the insertion id return value
 
    