2

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

1
  • 2
    Would downvoter like to comment at all? Mar 30, 2012 at 8:24

2 Answers 2

1

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.

0
1

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.

1
  • Fair enough, I didn't think cookies would be all that useful, but I guess that you're right. :) Mar 30, 2012 at 14:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.