04-07-2011 02:42 PM
In any event, you get Web SQL database support in WebWorks for Playbook (not sure about smartphone support). While this standard isn't in development by W3C anymore, it's a very capable storage solution. Here' s a guide http://html5doctor.com/introducing-web-sql-databas
04-07-2011 02:54 PM - edited 04-07-2011 02:55 PM
How sophisticated does your data storage need to be?
I'm doing just fine with:
// retrieve retrievedVar = localStorage.getItem('somekey'); // store localStorage.setItem('somekey', somevalue);
In order to store more complicated structures I use JSON.js and apply JSON.stringify(object) before storing it so that it's a string and then use JSON.parse(retrievedVar) to get it back.
Unless you need SQL-like functionality this works like a charm!
Staff UI Prototyper (read: full-time hacker)
04-07-2011 05:05 PM