cyclestreets / mobileweb2011

Mobile HTML client - LEGACY site
https://oldm.cyclestreets.net/
13 stars 2 forks source link

Non-urgent enhancement: Offline journeys would be nice #4

Open annapowellsmith opened 13 years ago

annapowellsmith commented 13 years ago

Use fallback in cache-manifest, store journeys in localstorage, display saved journeys as text when offline.

annapowellsmith commented 13 years ago

I've written up this ticket terribly, I don't know what I was thinking. These would be my suggested steps to implement:

  1. Save full details of all journeys in localStorage (include a check whether localStorage is full, and fail gracefully if so).
  2. Include a reference to cache-manifest from index.html, but no other pages.
  3. Add a cache-manifest with a FALLBACK section that refers to a page called offline.html.
  4. Amend index.html so that if the user is offline, it just says "Sorry, you're offline - but you can look at your saved journeys here" (link to offline.html).
  5. Create offline.html to show all saved journeys in localStorage as a set of text directions.
mvl22 commented 13 years ago

Note this posting on the IEblog which may be of interest: http://blogs.msdn.com/b/ie/archive/2011/09/27/building-offline-experiences-with-html5-appcache-and-indexeddb.aspx