Skip to content Skip to sidebar Skip to footer

Firefox 4.06b IndexedDB Support

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: http://hacks.mozilla.org/categor

Solution 1:

Note that in Google Chrome, it's window.webkitIndexedDB.


Solution 2:

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]

Solution 3:

You could also check out http://nparashuram.com/ttd/IndexedDB/index.html for specific examples on IE, FF and CHrome


Solution 4:

Firefox 4b10: mozIndexedDb

Chrome 10: webkitIndexedDb


Post a Comment for "Firefox 4.06b IndexedDB Support"