I am attempting to set a property to the value of a model's async, hasMany relationship. But I'm not able to return any value within the then function.  App.Athlete = DS.Model.extend({     name: DS.attr('string'),     age: DS.attr(...
I saw sync-promise posted on Reddit and got into a discussion with the author. We noticed some weird inconsistencies in the relationship between IndexedDB transactions and promises.  IndexedDB transactions auto-commit when all the onsuccess events fi...
I have written an offline application that utilises IDB to store images and text that would normally exist in a MySQL DB for offline use.  However, I am trying to figure out a way that I can read the limit on the devices storage for IndexedDB. I am c...
I am experimenting with indexeddb, and have some data added to ObjectStore which should have 90 rows.   But I can see only 50 rows in Chrome development tools.   Is it Chrome that limits the rows, or my code is not adding more than 50 rows? For examp...
I am new to IndexedDB and I am following this guide IndexedDB Tutorial I am simply trying to create a database and then be able to add a few entries. This is what I have so far.   var db = window.indexedDB.open('FriendDB', 'My Friends!...
I have the following code on a (HTML/javascript) Windows Store app  var reqOpen = window.indexedDB.open(that.dbName, that.dbVersion);   The thing is, when I wanted to use that exact code on a (HTML/javascript) Windows Phone 8.1 app I get undefined on...
Overview:  I am trying to avoid a race condition with accessing an IndexedDB from both a webpage and a web-worker.    Setup: Webpage that is saving items to the local IndexedDB as the user works with the site. Whenever a user saves data to the local...
My intent  Loop through localStorage and put the data into IndexedDB.  If certain known errors happen, such as a ConstraintError when a key already exists, I want to ignore those specific errors, so that the transaction is not aborted. Aborting the t...
A quick overview of what I have, and the problems that are associated with it. I have a HTML5 app that I am going to run as a native app using PhoneGap. It is a small data collection application for the local field research station.   The problem wit...
I want to basic count the number of records in my indexedDB database.   Currently my code looks like   Javascript  var transaction = db.transaction(["data"], "readonly"); var objectStore = transaction.objectStore("data"); var...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.