Skip to content
This repository has been archived by the owner on Aug 15, 2019. It is now read-only.

Added cookieless fallbacks for IE6+, FF2+ #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pzl
Copy link

@pzl pzl commented Dec 1, 2012

Added a fallback chain from: localStorage to globalStorage (early versions of FF before localS) and #userData for IE6 and 7

covers most browsers without the overhead from cookies

Remaining issues from this

  • Browsers not supporting one of these methods (not many, very old, usually not supported?)
  • FF when about:config has local storage turned off
  • Breaks demo page when manually setting visit date

As for the last point, it could be solved by either:

  1. rewriting the onclick/eventhandlers to check the support, then use whichever method on each link
  2. exposing the checks in the aware plugin to be more generic storage getters and setters

The latter seemed to be rewriting https://github.com/marcuswestin/store.js so I didn't assume to do it right away. The first I'd rather run by you before cutting up your demo page entirely

N.B. On the demo page, the JS was moved to the opening body tag. This was so that the IE7- support could use window.document.body as part of its storage device.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant