Book Image

HTML5 iPhone Web Application Development

By : Alvin Crespo
Book Image

HTML5 iPhone Web Application Development

By: Alvin Crespo

Overview of this book

<p>Create compelling web applications specifically tailored for distribution on iOS Safari. Work through real world examples with references, and in-depth discussions on the approach; including its benefits and drawbacks.<br /><br />"HTML5 iPhone Web Application Development" strives to teach all levels of developers, beginners and professionals, the process of creating web applications for iOS Safari. Utilizing current industry standards for frontend development, learn to take advantage of HTML5, CSS3 and JavaScript to create compelling software.<br /><br />Start with reviewing current industry standards for frontend development, and end with creating a native application using the same codebase.</p> <p>Your journey will begin with an overview of current industry standards for frontend technology, quickly moving to solve real world issues; from creating a resizable or responsive gallery, to creating a single page application that utilizes the popular Backbone.js framework.</p> <p>"HTML5 iPhone Web Application Development" aims to make you an expert in developing web applications for the iOS Safari platform.</p>
Table of Contents (17 chapters)
HTML5 iPhone Web Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Handling offline applications


At this point, we have learned how to cache our files on the client side using the application manifest interface to not only speed up our site, but also make it available to our users when they are offline. However, this technique doesn’t take into account what you should do to handle interactions by the user. In this case, we need to make sure our application has usable parts that can make the application seamless when they lose connection.

A simple use case

Before we proceed, let’s define a simple use case for why handling an offline application is useful to both the user and us. Let’s say we have a user named John, and John is commuting to work and is currently updating his profile in a web application on his iPhone. The commute involves some spotty network connections, and sometimes he does lose connection. He would like to be able to continue using the application while he is on his way to work, instead of waiting to do so at work.

Given the world we live...