Chapter 3. HTML5 Storage APIs
In the last chapter, we looked at creating a simple mobile web page and a simple Create Task form for our to-do list application. In this chapter, we will look at options for being able to store data locally on the device. HTML5 introduces a couple of APIs that permit this kind of client-side storage.
Previously when writing a web app, if you needed to save data to a database, you would need to use a server-side script (PHP, Python, Ruby, etc.) to do this for you. Some emerging elements of the HTML5API offer a client-side alternative for this, and investigating these and how to effectively use them will be the primary focus of this chapter.
Essentially, three different types of client-side storage mechanisms are being ...
Get Pro Android Web Apps: Develop for Android Using HTML5, CSS3 & JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.