Skip to Main Content
HTML5 for .NET Developers
book

HTML5 for .NET Developers

by James Jackson, Ian Gilman
November 2012
Beginner content levelBeginner
416 pages
13h 22m
English
Manning Publications
Content preview from HTML5 for .NET Developers

Chapter 9. Local storage and state management

This chapter covers

  • Storing data locally in the browser
  • Retrieving stored data and restoring application state
  • Managing objects and properties using LocalStorage

Any application that handles a lot of user interaction and customization will benefit from the ability to store stateful information without the fuss and transactional support of sending it to the server and retrieving it when the user returns to the site. Consider a game site where the user wants to keep the last five highest scores. Only the highest score goes to the server for display; the rest are stored locally on the client for as long as the user wants. This reduces traffic and storage loads on the server while keeping the data ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

HTML5 Programming for ASP.NET Developers

HTML5 Programming for ASP.NET Developers

Bipin Joshi
HTML5 Guidelines for Web Developers

HTML5 Guidelines for Web Developers

Klaus Förster, Bernd Öggl

Publisher Resources

ISBN: 9781617290435Publisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link