Is it possible to access the IndexedDB API in Firefox 4.0b6? If so, how? window.indexedDB is not defined. Currently working off of this example:
+2
A:
This information is difficult to find but it's called moz_indexedDB
until the standard is further along: http://blog.dankantor.com/post/1018704095/ah-need-to-use-window-moz-indexeddb-instead-of
console.log("window.indexedDB: " + window.indexedDB);
window.indexedDB: undefined
console.log("window.moz_indexedDB: " + window.moz_indexedDB);
window.moz_indexedDB: [object IDBFactory]
kanaka
2010-10-16 19:21:04
I added a note to the documentation to try and clear this up more: https://developer.mozilla.org/en/IndexedDB#Asynchronous_API
sdwilsh
2010-10-17 16:21:51