Re:Download Entire Wikipedia for Offline Use With an HTML5 App
by khuey on Friday December 30, 2011 @07:55PM
(#3409728)
It says it was tested in Firefox 10, which is a little surprising since it doesn't work at all in Firefox 10. The IndexedDB spec changed and Firefox changed to align with the spec between 9 and 10, but the page uses the old API.
[ Parent
| on HN ]
Re:Download Entire Wikipedia for Offline Use With an HTML5 App
by antimatter15 on Friday December 30, 2011 @08:23PM
(#3409793)
I tested it on an infrequently updated installation of firefox nightly, and the about page said Firefox 10. But I didn't know the API changed, I'll look into it. But how so did it change?
Re:Download Entire Wikipedia for Offline Use With an HTML5 App
by khuey on Friday December 30, 2011 @08:35PM
(#3409813)
Instead of doing
var request = mozIndexedDB.open("databasename"); request.onsuccess = function(event) { request = event.target.result.setVersion(N); request.onsuccess = function(event) { // set up your database } }
it looks like
var request = mozIndexedDB.open("databasename", N); request.onupgradeneeded = function(event) { // set up your database } request.onsuccess = function(event) { // do stuff with your database }
Feel free to email me at <my hacker news username>@mozilla.com if you need a more detailed explanation.