I am trying to implement indexedDB in my mobile app.here i am giving my code
function readAll() {
var objectStore = db.transaction("customers").objectStore("customers");
objectStore.openCursor().onsuccess = function(event) {
var cursor = event.target.result;
if (cursor) {
alert("Name for id " + cursor.key + " is " + cursor.value.name + ", Age: " + cursor.value.age + ", Email: " + cursor.value.email);
cursor.continue();
}
else {
alert("No more entries!");
}
};
}
in this cursor.continue(); shows with red line in my js file.I don't know why
Please any one help.I got this code from
http://www.onlywebpro.com/2012/12/23/html5-storage-indexeddb/
Thanks
MobileFirst does not provide IndexedDB support as this is not a feature that it can provide.
MobileFirst uses Cordova at its base. If Cordova supports IndexedDB, your application will be able to use it.
According to the Cordova documentation, IndexedDB is supported in: