Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DataError when creating an index with a compound key in IE 10

I am testing an indexedDB based app using IE10. I am not able to create an object store which has multiple keys. For example, var objectStore = theDb.createObjectStore("store1", { keyPath: ["key1","key2"] });.

When I try to insert data into the store an exception message is raised: "DataError" This is not very helpful! Has anyone been able to create objectStores using IE10 with multiple keys? This works fine testing in Chrome.

like image 320
abarber Avatar asked Jan 11 '13 17:01

abarber


1 Answers

I run into the same problem. From their forum thread, complex key path or compound index not supported in IE10 complaining that spec was not defined (incorrect). There are other IndexedDB API features not implemented in IE10. To be fair, IE10 IndexedDB is fast.

like image 130
2 revs Avatar answered Sep 30 '22 13:09

2 revs