O'Reilly logo

PhoneGap Essentials: Building Cross-Platform Mobile Apps by John M. Wargo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

22. Storage

Most HTML 5–compatible browsers provide web applications with the ability to read and write key/value pairs from/to a local storage facility and to read and write data from/to a local SQL database. Neither of those capabilities is a direct functions of HTML but instead something typical browsers made available to JavaScript code running within the browser.

These capabilities were originally delivered through implementations of the W3C Web SQL Database Specification (www.w3.org/TR/webdatabase) and the W3C Web Storage API Specification (www.w3.org/TR/webstorage). The Web Storage API is still valid, but the W3C has stopped work on the Web SQL specification, and instead developers typically work with the SQLite (www.sqlite.com) database ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required