04.03.2017 Views

test

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Lesson summary 588<br />

Lesson review 589<br />

Lesson 2: Working with IndexedDB ................................589<br />

Using browser-specific code 590<br />

Creating and opening the database 590<br />

Using object stores 591<br />

Using transactions 593<br />

Inserting a new record 594<br />

Updating an existing record 594<br />

Deleting a record 595<br />

Retrieving a record 595<br />

Understanding cursors 596<br />

Dropping a database 599<br />

Lesson summary 599<br />

Lesson review 600<br />

Lesson 3: Working with the FileSystem API .........................600<br />

Assessing browser support 601<br />

Opening the file system 601<br />

Creating and opening a file 602<br />

Writing to a file 602<br />

Reading a file 603<br />

Deleting a file 604<br />

Creating and opening a directory 604<br />

Writing a file to a directory 605<br />

Deleting a directory 605<br />

Lesson summary 606<br />

Lesson review 606<br />

Lesson 4: Working with the offline application HTTP cache ...........607<br />

Browser support 608<br />

The cache manifest file 608<br />

Updating the cache 609<br />

Understanding events 610<br />

Contents<br />

xvii

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!