views:

52

answers:

1

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/category/indexeddb/as/complete/

+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
I added a note to the documentation to try and clear this up more: https://developer.mozilla.org/en/IndexedDB#Asynchronous_API
sdwilsh