I’ve been asked to research offline storage options for web forms on mobile devices (mainly sign-up forms on iPads for use at large events where due to huge numbers and location connectivity always seems to be an issue).
What I’d like to come up with is something like:
- A form that can submit data when connected, or store if offline when not.
- Check the connection periodically and submit the form data when able.
Can anyone point me in the right direction here?
Thanks,
Chris
Sounds like you just need key/value pairs. window.localStorage is your friend!
It’s key/value storage that persists through page refreshes, and across all pages in the same domain (eg: run window.localStorage.userName = “John Doe”; somewhere on “http://www.somedomain.com/index.html” and then when the user goes to “http://www.somedomain.com/page2.html” if you run “window.localStorage.userName” it will still return “John Doe”.
Let me know if you need code snippets.