As I understand it is IndexedDB is THE way to go for mostly cross browser solution to DB online. Perhaps even using this polyfill for browsers such as FF.
I’m trying to find an extremely simple page that uses IndexedDB to initially populate a DB, read from it, and then update/insert records.
Everything I’m coming across seems to be outdated.
Eample: http://www.html5rocks.com/en/tutorials/indexeddb/todo/
This doesn’t appear to work in my version of Chrome (21)
What are the latest and greatest samples on this?
This contains up-to-date code. A problem is that Chrome 21 is not very up-to-date, it doesn’t support
onupgradeneeded. You can either do something like this to make it compatible with Chrome 21, or wait for Chrome 23 if you want to do things the most modern way (the latest developer builds seem to work well enough).Here is another recent tutorial that works in Chrome 23, but won’t in the current version.