简体   繁体   中英

IS IBM MobileFirst Platform 7.0.0.00 supports indexedDB

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:

  • BlackBerry 10
  • Firefox OS
  • Windows Phone 8
  • Windows 8

please go through below link cordova supports

https://cordova.apache.org/docs/en/5.1.1/guide/support/index.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM