Question

Since the WebSQL has lost all the support and the development being stopped, how are people able to implement Offline Storage in web apps using HTML5. I know Google Chrome and Safari are still having it as a part of the browser but I guess soon it will be lost. So which are the technologies that are replacing it and what are the different things that need to be implemented to have an offline app rather than using webSQL?

Was it helpful?

Solution

Chrome, Firefox and IE10 now also support IndexedDB, a replacement for WebSQL.

OTHER TIPS

HTML5 supports localStorage, which allows you to store large quantities of data on clients' computers, somewhat comparable to cookies. All major browsers support it by now. You can read all about it at http://diveintohtml5.info/storage.html.

localStorage and sessionStorage are supported in all major browsers now.

If you use JSON2 (google Douglas Crockford and JSON2) you can serialize your JSON objects for local and session storage.

Its not as nice as using SQL queries but you can work with JSON pretty well and there are some plugins to help you.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top