Note that there are some explanatory texts on larger screens.

plurals
  1. POHTML5 Local Storage fallback solutions
    text
    copied!<p>I'm looking for javascript libraries and code that can simulate <code>localStorage</code> on browsers that do not have native support.</p> <p>Basically, I'd like to code my site using <code>localStorage</code> to store data and know that it will still work on browsers that don't natively support it. This would mean a library would detect if <code>window.localStorage</code> exists and use it if it does. If it doesn't exist, then it would create some sort of fallback method of local storage, by creating its own implementation in the <code>window.localStorage</code> namespace.</p> <p>So far, I've found these solutions:</p> <ol> <li>Simple <a href="http://24ways.org/2009/breaking-out-the-edges-of-the-browser" rel="noreferrer">sessionStorage</a> implementation.</li> <li>An implementation <a href="http://www.thewojogroup.com/2010/01/simulating-html5-local-storage/" rel="noreferrer">that uses cookies</a> (not thrilled with this idea).</li> <li>Dojo's <a href="http://docs.dojocampus.org/dojox/storage" rel="noreferrer">dojox.storage</a>, but it is it's own thing, not really a fallback.</li> </ol> <p>I understand that Flash and Silverlight can be used for local storage as well, but haven't found anything on using them as a fallback for standard HTML5 localStorage. Perhaps Google Gears has this capability too?</p> <p>Please share any related libraries, resources, or code snippets that you've found! I'd be especially interested in pure javascript or jquery-based solutions, but am guessing that is unlikely.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload