Friday, 8 July 2016

Windows 8 IndexedDB invalid access error

While following the code at Getting Started with IndexedDB, I encountered the invalid access error at this line
var transaction = db.transaction("people", IDBTransaction.READ_WRITE);

It turns out that the IDBTransaction is obsolete. Following the instruction at IndexedDB changed in IE10 PP6, I changed the code to the following. It now works!

var transaction = db.transaction("people", "readwrite");

No comments:

Post a Comment