12.07.2015 Views

Pro JavaScript for Web Apps pdf - EBook Free Download

Pro JavaScript for Web Apps pdf - EBook Free Download

Pro JavaScript for Web Apps pdf - EBook Free Download

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

• CONTENTSAdding URL Routing to the CheeseLux <strong>Web</strong> App ...........................................................101Moving the map<strong>Pro</strong>ducts Function....................................................................................................... 105Enhancing the View Model ................................................................................................................... 105Managing Application State.................................................................................................................. 106Summary .......................................................................................................................108• Chapter 5: Creating Offline <strong>Web</strong> <strong>Apps</strong>.................................................................109Resetting the Example...................................................................................................109Using the HTML5 Application Cache..............................................................................111Understanding When Cached Content Is Used ..................................................................................... 113Accepting Changes to the Manifest...................................................................................................... 115Taking Control of the Cache Update <strong>Pro</strong>cess ....................................................................................... 116Adding Network and Fallback Entries to the Manifest ......................................................................... 122Monitoring Offline Status...............................................................................................126Understanding with Ajax and POST Requests ...............................................................129Understanding the Default Ajax GET Behavior...................................................................................... 131Adding the Ajax URL to the Main Manifest or FALLBACK Sections....................................................... 135Adding the Ajax URL to the Manifest NETWORK Section ...................................................................... 135Understanding the POST Request Behavior.......................................................................................... 135Summary .......................................................................................................................136• Chapter 6: Storing Data in the Browser..............................................................137Using Local Storage.......................................................................................................137Storing JSON Data................................................................................................................................ 139Storing Form Data ................................................................................................................................ 142Synchronizing View Model Data Between Documents ..................................................144Using Session Storage...................................................................................................148Using Local Storage with Offline <strong>Web</strong> Applications.......................................................149Using Local Storage with Offline Forms ............................................................................................... 153viiiwww.it-ebooks.info

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

Saved successfully!

Ooh no, something went wrong!