Skip to content

greenido/WebSQL-to-IndexedDB-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jul 26, 2015
39de33e · Jul 26, 2015

History

36 Commits
Sep 27, 2012
Jul 26, 2015
Oct 9, 2012
Jul 4, 2013
Oct 9, 2012
Oct 9, 2012
Dec 15, 2011
Sep 27, 2012
Sep 27, 2012

Repository files navigation

Intro

Few simple example that show you the power of both indexedDB and WebSQL. The main.html part is taking two examples of the same code (more or less). Both show how to work with WebSQL and indexedDB in order to save data in the client side.

The jqm is a shortcut for jQueryMobile and there you can see the two examples that use JQM with indexedDB and WebSQL in order to create a simple web app for todo list. Classic, no?

Examples

(!) Please note that since November 18, 2010, the W3C announced that Web SQL database is a deprecated specification. This is a recommendation for web developers to no longer use the technology as effectively the spec will receive no new updates and browser vendors aren't encouraged to support this technology. Many major browsers including Chrome, Safari, Opera and nearly all Webkit based mobile devices support WebSQL, however, if you are going to start a new project and/or you wish to have your code running with the new version of client side database (that will receive updates and improvements) you should implement indexedDB as your client side DB.

Todos

  • Check how it's working in Chrome 42.
  • Check the options to leverage a lib. for multi browsers support.

Be strong

Analytics