Live data from Hacker News

Store.js - cross browser local storage without using cookies or flash

github.com

1–10 of 63 posts

Re: Store.js - cross browser local storage without using cookies or flash

#2
From the readme:

"So far tested in

Tested in Firefox 2.0 Tested in Firefox 3.0 Tested in Firefox 3.6 Tested in Chrome 5 Tested in Safari 4 Tested in Safari 5 Tested in IE6 Tested in IE7 Tested in IE8 Tested in Opera 10"

Does it mean it works on IE6+? Does IE6 have local storage?

Re: Store.js - cross browser local storage without using cookies or flash

#3
post #2

From the readme: "So far tested in Tested in Firefox 2.0 Tested in Firefox 3.0 Tested in Firefox 3.6 Tested in Chrome 5 Tested in Safari 4 Tested in Safari 5 Tested in IE6 Tested in IE7 Tested in IE8 Tested in Opera 10" Does it mean it works on IE6+? Does IE6 have local storage?

Probably uses Adobe Flash storage in browsers that don't support a db.

Re: Store.js - cross browser local storage without using cookies or flash

#4
post #2

From the readme: "So far tested in Tested in Firefox 2.0 Tested in Firefox 3.0 Tested in Firefox 3.6 Tested in Chrome 5 Tested in Safari 4 Tested in Safari 5 Tested in IE6 Tested in IE7 Tested in IE8 Tested in Opera 10" Does it mean it works on IE6+? Does IE6 have local storage?

Take a look at the source. It uses an IE-proprietary something or other to mock the behavior.

http://msdn.microsoft.com/en-us/library/ms531424%28v=VS.85%2...

Been available since IE 5.5, apparently. Who knew?

Re: Store.js - cross browser local storage without using cookies or flash

#5
post #2

From the readme: "So far tested in Tested in Firefox 2.0 Tested in Firefox 3.0 Tested in Firefox 3.6 Tested in Chrome 5 Tested in Safari 4 Tested in Safari 5 Tested in IE6 Tested in IE7 Tested in IE8 Tested in Opera 10" Does it mean it works on IE6+? Does IE6 have local storage?

Looks like it. If you look a the store.js source code, it links to http://msdn.microsoft.com/en-us/library/ms531424(v=VS.85).as... which appears to be another one of those hidden gems in IE, like the original AJAX implementation, or XDomainRequest.

Re: Store.js - cross browser local storage without using cookies or flash

#6
post #2

From the readme: "So far tested in Tested in Firefox 2.0 Tested in Firefox 3.0 Tested in Firefox 3.6 Tested in Chrome 5 Tested in Safari 4 Tested in Safari 5 Tested in IE6 Tested in IE7 Tested in IE8 Tested in Opera 10" Does it mean it works on IE6+? Does IE6 have local storage?

I've seen some frameworks that use flash storage as a last resort for IE6. I've found success just building in a ajax fail-over and then let IE6 or any other browser make use of the fail-over.

Re: Store.js - cross browser local storage without using cookies or flash

#7
post #2

From the readme: "So far tested in Tested in Firefox 2.0 Tested in Firefox 3.0 Tested in Firefox 3.6 Tested in Chrome 5 Tested in Safari 4 Tested in Safari 5 Tested in IE6 Tested in IE7 Tested in IE8 Tested in Opera 10" Does it mean it works on IE6+? Does IE6 have local storage?

Probably uses Adobe Flash storage in browsers that don't support a db.

The source code is very short, readable and only one JavaScript file (plus an HTML page with embedded JS for the tests). There's no Flash, although that was admittedly my first thought as well.

Re: Store.js - cross browser local storage without using cookies or flash

#8
post #4
post #2

From the readme: "So far tested in Tested in Firefox 2.0 Tested in Firefox 3.0 Tested in Firefox 3.6 Tested in Chrome 5 Tested in Safari 4 Tested in Safari 5 Tested in IE6 Tested in IE7 Tested in IE8 Tested in Opera 10" Does it mean it works on IE6+? Does IE6 have local storage?

Take a look at the source. It uses an IE-proprietary something or other to mock the behavior. http://msdn.microsoft.com/en-us/library/ms531424%28v=VS.85%2... Been available since IE 5.5, apparently. Who knew?

Really awesome. I did check the source, but did not quite understand that. Thanks!
Post reply on HN