Update cookies preferences

E-book: Client-Side Data Storage: Keeping It Local

3.69/5 (25 ratings by Goodreads)
  • Format: 118 pages
  • Pub. Date: 24-Dec-2015
  • Publisher: O'Reilly Media
  • Language: eng
  • ISBN-13: 9781491935064
Other books in subject:
  • Format - EPUB+DRM
  • Price: 21,64 €*
  • * the price is final i.e. no additional discount will apply
  • Add to basket
  • Add to Wishlist
  • This ebook is for personal use only. E-Books are non-refundable.
  • Format: 118 pages
  • Pub. Date: 24-Dec-2015
  • Publisher: O'Reilly Media
  • Language: eng
  • ISBN-13: 9781491935064
Other books in subject:

DRM restrictions

  • Copying (copy/paste):

    not allowed

  • Printing:

    not allowed

  • Usage:

    Digital Rights Management (DRM)
    The publisher has supplied this book in encrypted form, which means that you need to install free software in order to unlock and read it.  To read this e-book you have to create Adobe ID More info here. Ebook can be read and downloaded up to 6 devices (single user with the same Adobe ID).

    Required software
    To read this ebook on a mobile device (phone or tablet) you'll need to install this free app: PocketBook Reader (iOS / Android)

    To download and read this eBook on a PC or Mac you need Adobe Digital Editions (This is a free app specially developed for eBooks. It's not the same as Adobe Reader, which you probably already have on your computer.)

    You can't read this ebook with Amazon Kindle

One of the most useful features of today's modern browsers is the ability to store data right on the user's computer or mobile device. Even as more people move toward the cloud, client-side storage can still save web developers a lot of time and money, if you do it right. This hands-on guide demonstrates several storage APIs in action. You'll learn how and when to use them, their plusses and minuses, and steps for implementing one or more of them in your application. Ideal for experienced web developers familiar with JavaScript, this book also introduces several open source libraries that make storage APIs easier to work with. Learn how different browsers support each client-side storage API Work with web (aka local) storage for simple things like lists or preferences Use IndexedDB to store nearly anything you want on the user's browser Learn how support web apps that still use the discontinued Web SQL Database API Explore Lockr, Dexie, and localForage, three libraries that simplify the use of storage APIs Build a simple working application that makes use of several storage techniques
Preface v
1 A Gentle Introduction to Client-Side Data Storage
1(2)
2 Working with Cookies
3(10)
Cookies? Seriously?
3(1)
Working with Cookies
4(2)
Reading Cookies
5(1)
Deleting Cookies
6(1)
Demos
6(4)
Inspecting Cookies Within Developer Tools
10(1)
Support and Recommended Usage
11(2)
3 Working with Web Storage
13(14)
Web Storage, AKA Local Storage
13(1)
Working with Web Storage
14(1)
Demos
15(4)
Listening for Storage Changes
19(4)
Inspecting Web Storage with Dev Tools
23(1)
Support and Recommended Usage
24(3)
4 Working with IndexedDB
27(36)
Welcome to Deep Data
27(1)
Key IndexedDB Terms
28(1)
Checking for IndexedDB Support
29(1)
Working with Databases
29(2)
Working with Object Stores
31(6)
Making Object Stores
32(2)
Defining Primary Keys
34(2)
Defining Indexes
36(1)
Working with Data
37(11)
Creating Data
38(4)
Reading Data
42(3)
Updating Data
45(2)
Deleting Data
47(1)
Getting All the Data
48(6)
Working with Ranges and Indexes
51(3)
Even More with IndexedDB
54(5)
Storing Arrays
54(5)
Counting Data
59(1)
Inspecting IndexedDB with Dev Tools
59(2)
Support and Recommended Usage
61(2)
5 Working with Web SQL
63(12)
Dead Spec Walking
63(1)
Basic Database Terms
64(1)
Checking for Web SQL Support
64(1)
Working with Databases
64(2)
Working with Transactions
66(6)
Inspecting Web SQL with Dev Tools
72(1)
Support and Recommended Usage
73(2)
6 Making It Easier with Libraries
75(16)
"Use the Library, Luke..."
75(1)
Working with Lockr
75(5)
Simplifying IndexedDB with Dexie
80(8)
Working with localForage
88(2)
More Options
90(1)
7 Building a Sample Application
91(14)
Let's Build Something!
91(1)
Our Sample Data
92(3)
The Application
95(2)
The Code
97(6)
Wrap-up
103(2)
Index 105
Raymond Camden is a developer advocate for IBM. His work focuses on the MobileFirst platform, hybrid mobile development, Node.js, HTML5, and ColdFusion. He's a published author and presents at conferences and user groups on a variety of topics.