12-23-2010 06:00 PM
I have started using the window.localStorage that is implemented in HTML5, and availabe in OS6. It works very well, since I only need to store some very small options (user/pass etc..) on the device, and accross pages. However, this doesn't work in OS5 devices.
What would you recomment for me to use in such devices? The Gears API etc.. seems like an overkill, with all those SQL statements and so on.
12-23-2010 08:05 PM
12-23-2010 09:04 PM
Does that library support the localStorage object? I included that in the file, but window.localStorage becomes undefined. I believe I included it properly, also using the id of the script tag.
Anybody have a different experience using this library with window.localStorage? Is it supposed to support all of the functionality provided by HTML5?
12-24-2010 12:07 PM
12-27-2010 06:46 PM
In case people are interested, I couldn't get the above API to work with localStorage (I don't think it's supported), so I ended up doing this using good old cookies. It seems like the ideal way of storing small pieces of information on the client while supporting a wide range of browsers..
01-04-2011 09:41 AM
05-09-2013 06:24 PM
I wrote a polyfill that uses WebWork's IO API as a backend for localStorage:
I hope that helps.