I used sqlite, phonegap, javascript and I m who need to get information from sqlite db.
I can get all the necessary information, insert, update, etc.
The problem is that javascript is running asynchronously. That is, it processes all other subsequent statements until all the necessary information is received from the database.
I tried using callbacks all the time, and I got tired of it since there are difficulties using loops. (cannot use sqlite queries in loops, as loop repeats before the current sqlquery is processed, which is not what I want)
Is it possible to perform these db operations synchronously?
UPDATE
Revealed a new solution from here: suggestion and problems of the webkit executesql loop
source
share