thanks but
the call *db.transaction.call(this, this.__queryDB)* does not work.
here is the original example of the PhoneGap homepage
http://docs.phonegap.com/en/2.0.0/cordova_storage_storage.md.html#Database
http://docs.phonegap.com/en/2.0.0/cordova_storage_storage.md.html#Database
*Execute SQL Quick Example :*
function populateDB(tx) {
tx.executeSql('DROP TABLE IF EXISTS DEMO');
tx.executeSql('CREATE TABLE IF NOT EXISTS DEMO (id unique, data)');
tx.executeSql('INSERT INTO DEMO (id, data) VALUES (1, "First
row")');
tx.executeSql('INSERT INTO DEMO (id, data) VALUES (2, "Second
row")');
}
function errorCB(err) {
alert("Error processing SQL: "+err.code);}
function successCB() {
alert("success!");}
var db = window.openDatabase("Database", "1.0",
"Cordova Demo", 200000);
db.transaction(populateDB, errorCB, successCB);
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/this-reference-tp7581251p7581254.html
Sent from the qooxdoo mailing list archive at Nabble.com.------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel