Skip to Content
HTML5 in Action
book

HTML5 in Action

by Greg Wanish, Rob Crowther, Joe Lennon, Charles Brindle
February 2014
Intermediate to advanced
466 pages
16h
English
Manning Publications
Content preview from HTML5 in Action

Chapter 5. Mobile applications: client storage and offline execution

Chapter 5 at a glance

Topic

Description, methods, and so on

Page

Web storage and management of simple key/value pair data on client-side local storage Methods:  
 
  • getItem()
  • localStorage
  • removeItem()
  • clear()
140 140 141 142
Indexed database Complex, indexed client-side database functionality Database/object store methods:  
 
  • open()
  • createObjectStore()
  • createIndex()
  • loadTasks
  • objectStore()
  • deleteDatabase()
145 145 146 150 152 155
  Cursor method
  • continue
150
Application cache Enable web applications to be used when client is offline Method:  
 
  • swapCache()
160

Look for this icon throughout the chapter to ...

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 Programmer’s Reference

HTML5 Programmer’s Reference

Jonathan Reid

Publisher Resources

ISBN: 9781617290497Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link