You should convert results returned from sqlite to an array. Following code does that.
function toArray(results) { var output = []; var i; for (i = 0; i < result.rows.length; i++) { output.push(result.rows.item(i)); } return output; };
You should convert results returned from sqlite to an array. Following code does that.
function toArray(results) { var output = []; var i; for (i = 0; i < result.rows.length; i++) { output.push(result.rows.item(i)); } return output; };