I’d like to be able to store, not a massive amount of data but not a trivial amount either on the client. Basically, I want to be able to use something like an SQLite database on the client side using Web technologies. The application is a foreign language dictionary so I want this data to be accessible once the application has been downloaded.
Is this possible with Sencha touch or any JavaScript/HTML5 technology?
There’s several options depending on the target browsers:
All of these technologies have storage limits, some of which vary between browsers, and to complicate things even more, some will let the user choose to allow expansion of the storage ceiling.
I’ve used localStorage with good results, and using a JavaScript compression library ( http://code.google.com/p/jslzjb/ ), you can gain some storage advantage (though in my experience, not a lot. If you’re at 5.5Mb with a 5MB limit, the compression might get you by, though)