Shiv Kumar Ganesh
Shiv Kumar Ganesh

Reputation: 3825

How to get along with HTML5 offline apps when the WebSQL is deprecated?

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?

Upvotes: 2

Views: 899

Answers (3)

duri
duri

Reputation: 15351

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

Upvotes: 2

King Friday
King Friday

Reputation: 26086

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.

Upvotes: 1

Patrickdev
Patrickdev

Reputation: 2381

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.

Upvotes: 1

Related Questions