Instant HTML5 Local Storage How-to

Over 15 recipes to take advantage of the HTML5 Local Storage standard
Preview in Mapt

Instant HTML5 Local Storage How-to

Alex Libby

Over 15 recipes to take advantage of the HTML5 Local Storage standard
Mapt Subscription
FREE
$29.99/m after trial
eBook
$9.10
RRP $12.99
Save 29%
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$9.10
$29.99 p/m after trial
RRP $12.99
Subscription
eBook
Start 30 Day Trial

Frequently bought together


Instant HTML5 Local Storage How-to Book Cover
Instant HTML5 Local Storage How-to
$ 12.99
$ 9.10
Instant HTML5 Geolocation How-to Book Cover
Instant HTML5 Geolocation How-to
$ 12.99
$ 9.10
Buy 2 for $18.20
Save $7.78
Add to Cart

Book Details

ISBN 139781849699310
Paperback80 pages

Book Description

The use of cookies to store information in a browser has been around for over a decade; its simplicity has led to its use in a variety of applications, such as online shopping baskets, but which has also lead to some inherent drawbacks in terms of security and use. HTML5 LocalStorage brings much needed additional functionality to your browser, allowing you to store more useful information that you can later reference in your websites.

"Instant HTML5 Local Storage How-to" is a practical, hands-on guide that provides you with a number of clear step-by-step exercises, which will help you take advantage of the power of the LocalStorage standard, and give you a good grounding in incorporating it into current or future website projects.

This book looks at how you can incorporate the HTML5 LocalStorage standard into your websites, using the power of modern browsers to store useful information that can be referenced at any time without recourse to the server.

You will also learn how to test for browser capability, and when the browser platform being used requires that you fall back to using cookies. We will also take a look at how you can store more relevant content, such as images or content from arrays, even though the normal standard requires content to be stored in string format. You will also learn how you can make content available offline using application caching, as well as how to incorporate LocalStorage into a plugin using jQuery that you can then incorporate into your sites in the future.

We will also look at some real-life examples, where "Instant HTML5 Local Storage How-to" will take you through how you could incorporate LocalStorage into your sites; we’ll take a look at code you can simply add to a site, or use as a development platform for your own future projects.

Table of Contents

Chapter 1: Instant HTML5 Local Storage How-to
Basic use of Local Storage (Must know)
Viewing Local Storage content in a browser (Must know)
Basic demo for Session Storage (Must know)
Comparing Local Storage and Session Storage (Should know)
Using web storage instead of cookies (Must know)
Basic detection for storage support (Must know)
Improving detection using Modernizr (Should know)
Providing fallback support (Should know)
Is the user online or offline? (Become an expert)
Using a manifest for caching (Become an expert)
Providing support for the mobile platform (Should know)
Building a simple plugin using jQuery (Should know)
Adding objects, arrays, and TTL support to storage (Become an expert)
Storing images within Local Storage (Become an expert)
Adjusting the Local Storage space for browsers (Must know)
Building a stickies option for using in a browser (Become an expert)
Building a simple to-do list (Become an expert)
Using Local Storage in a form (Become an expert)
Using Local Storage in a CMS (Become an expert)
Using Local Storage to hide sign-up forms (Become an expert)

What You Will Learn

  • Basic usage of HTML5 Storage, including its limitations and security
  • Viewing localStorage content in my browser
  • Building a basic demo using session and local storage
  • Adding detection to a site to determine when you can use LocalStorage
  • Implementing application caching, with checks to determine online status
  • Using web storage instead of cookies
  • Building a simple plugin using jQuery
  • Adding objects, arrays, images, and TTL support to storage
  • Adjusting local storage space for browsers

Authors

Table of Contents

Chapter 1: Instant HTML5 Local Storage How-to
Basic use of Local Storage (Must know)
Viewing Local Storage content in a browser (Must know)
Basic demo for Session Storage (Must know)
Comparing Local Storage and Session Storage (Should know)
Using web storage instead of cookies (Must know)
Basic detection for storage support (Must know)
Improving detection using Modernizr (Should know)
Providing fallback support (Should know)
Is the user online or offline? (Become an expert)
Using a manifest for caching (Become an expert)
Providing support for the mobile platform (Should know)
Building a simple plugin using jQuery (Should know)
Adding objects, arrays, and TTL support to storage (Become an expert)
Storing images within Local Storage (Become an expert)
Adjusting the Local Storage space for browsers (Must know)
Building a stickies option for using in a browser (Become an expert)
Building a simple to-do list (Become an expert)
Using Local Storage in a form (Become an expert)
Using Local Storage in a CMS (Become an expert)
Using Local Storage to hide sign-up forms (Become an expert)

Book Details

ISBN 139781849699310
Paperback80 pages
Read More

Read More Reviews

Recommended for You

Learning DHTMLX Suite UI Book Cover
Learning DHTMLX Suite UI
$ 17.99
$ 12.60
Building Websites with VB.NET and DotNetNuke 4 Book Cover
Building Websites with VB.NET and DotNetNuke 4
$ 23.99
$ 16.80
Web Content Management with Documentum Book Cover
Web Content Management with Documentum
$ 44.99
$ 31.50
Learning Anime Studio Book Cover
Learning Anime Studio
$ 26.99
$ 18.90
Mastering TypoScript: TYPO3 Website, Template, and Extension Development Book Cover
Mastering TypoScript: TYPO3 Website, Template, and Extension Development
$ 35.99
$ 25.20
AJAX and PHP: Building Responsive Web Applications Book Cover
AJAX and PHP: Building Responsive Web Applications
$ 20.99
$ 14.70