Thomas Clayson
Thomas Clayson

Reputation: 29925

Collecting data locally on the iPad for retrieval later

This isn't a native iPad app. This is a HTML5 web app which runs from the iPad's local storage (so it will display offline).

What I need to do is have a form which collects information and stores it somewhere locally for retrieval later.

Is there any way I can achieve this. I don't care how the data is stored, just that it doesn't expire (like cookies do) and its relatively easy to retrieve at a later date.

Thanks

Upvotes: 2

Views: 674

Answers (2)

Ian Devlin
Ian Devlin

Reputation: 18870

If you don't care what you use, you can just as easily use cookies and set their expiration date to the year 3000 or something!

Alternatively you can take advantage of localStorage and store the form data in JSON format.

Upvotes: 1

Quentin
Quentin

Reputation: 943569

Apple have a Safari Client-Side Storage and Offline Applications Programming Guide section in their documentation. It lists the various options.

Key-Value storage sounds like it best fits your usecase.

Upvotes: 1

Related Questions