cordova - Fetch rows from websqldatabase -


i'm using websqldatabase in phonegap(windows phone) store data @ local end. database creation/table creation , records insertion in tables working fine. issue occurring while fetching inserted records table. after executing select query function neither calling success callback nor error callback. i'm not sure missing in code. here source code:

function readfromdatabase(){   try {   alert("in readfromdb before");   var db = window.opendatabase("surveryappdb", "1.0", "surveydb", 1000000);   db.transaction(function (tx) {   tx.executesql("select * projects;", [], successfetch, errorfetch);   alert("after execution");   });   }   catch(e) {   alert("unknown error "+e+".");   }   }   settimeout(function () { readfromdatabase() }, 500);    function successfetch(tx, resultset){   alert("before display rows in success");   displayrows(resultset.rows);   }    function errorfetch(tx, error){   alert("error processing sql: "+json.stringify(error));   } 

any appreciated...


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -