Thursday, May 23, 2024
 Popular · Latest · Hot · Upcoming
21
rated 0 times [  25] [ 4]  / answers: 1 / hits: 27083  / 8 Years ago, sat, april 30, 2016, 12:00:00

This is the first time for me to use indexDB, I've created a database and now trying to add content to it. But I'm getting the following error.




Uncaught NotFoundError: Failed to execute 'transaction' on 'IDBDatabase': One of the specified object stores was not found.




I've uploaded my code on jsfiddle just because its easier to show you it running. Any suggestions please ?



https://jsfiddle.net/8kj43kyn/



// Creating an indexDB - Used to store users information.  
window.indexedDB = window.indexedDB || window.mozIndexedDB ||
window.webkitIndexedDB || window.msIndexedDB;

More From » local

 Answers
87

Should that



var transaction = db.transaction( [books, 'readwrite']);


be



var transaction = db.transaction([books], 'readwrite');

[#62348] Wednesday, April 27, 2016, 8 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
melinal

Total Points: 367
Total Questions: 101
Total Answers: 96

Location: Nauru
Member since Thu, Feb 2, 2023
1 Year ago
melinal questions
Thu, Dec 2, 21, 00:00, 3 Years ago
Tue, Jun 15, 21, 00:00, 3 Years ago
Tue, Feb 25, 20, 00:00, 4 Years ago
;