O'Reilly logo

Sencha Touch Cookbook - Second Edition by Ajit Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Storing your data offline in localstorage

Any application has to deal with data to provide a rich set of functionalities. Moreover, when the application goes offline, the data that's required to work with also needs to be available locally. In this recipe we will look at how to take our data offline and use it in the application.

We have taken the example of an application that will download the list of orders and their details on the device and uses it to allow the user to look at the list of orders and their details.

Getting ready

Make sure that you have set up your development environment by following the recipes outlined in Chapter 1, Gear Up for the Journey.

Make sure that you have the ch08 folder created inside the www folder.

How to do it... ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required