Live data from Hacker News

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

github.com

21–30 of 63 posts

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

#21
post #16
post #5

Earlier quoted context omitted.

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.

"Hidden?" Give IE some respect...its rendering may have been crap, but it had plenty of features like this for building robust web applications years before the cool kids realized that might be a good idea.

Yes, that's exactly what I was trying to get at, evidently unsuccessfully. For all of IE's failings, it does seem to have been first to support an awful lot of scripting features. They've always been documented, but hardly anyone seems to know about them until the other browsers popularise them, and even then IE's implementation seems to be forgotten, presumably because APIs are nonstandard and the docs use different terminology.

I was doing web dev for an agency back when IE6 was the coolest browser around, and all around me JavaScript was still very much being used only for menus and rollovers. I guess all these features were basically ahead of their time. I'd love to know what Microsoft used them for, or intended them for. I mean, they've been exercising their vested interest in not pushing rich browser-based apps for years. I know their MSDN site has been very AJAX-y since before it was cool.

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

#22
post #19

Earlier quoted context omitted.

Give IETester a whirl. IE 5.5, 6, 7, 8, and 9 preview render engines in a single executable. http://www.my-debugbar.com/wiki/IETester/HomePage

I'm not convinced that IETester changes the underlying APIs correctly. Because of bad experience with "Multiple IE" simulators in the past I don't test on anything but the real install.

I hear you there. I just wish it were easier to have multiple versions of IE laying around without having to boot a VM for each. Heh.

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

#23
post #16

Earlier quoted context omitted.

"Hidden?" Give IE some respect...its rendering may have been crap, but it had plenty of features like this for building robust web applications years before the cool kids realized that might be a good idea.

Yes, that's exactly what I was trying to get at, evidently unsuccessfully. For all of IE's failings, it does seem to have been first to support an awful lot of scripting features. They've always been documented , but hardly anyone seems to know about them until the other browsers popularise them, and even then IE's implementation seems to be forgotten, presumably because APIs are nonstandard and the docs use differen…

XmlHTTPRequest was created by Microsoft for OWA around 2000. I remember using JSRS (http://www.ashleyit.com/rs/) at the time until Mozilla started supporting XHR. Fine times :)

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

#27
post #19

Earlier quoted context omitted.

Give IETester a whirl. IE 5.5, 6, 7, 8, and 9 preview render engines in a single executable. http://www.my-debugbar.com/wiki/IETester/HomePage

I'm not convinced that IETester changes the underlying APIs correctly. Because of bad experience with "Multiple IE" simulators in the past I don't test on anything but the real install.

Yeah, I had trouble with those "portable IE6" implementations too. But IETester seems to be a lot closer to the real thing, at least as far as I can tell.

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

#28

Fix issue 1, rename store.del() to store.remove() marcuswestin (author) 18 minutes ago Will the API be stabilized? Or can you alias method names in cases like this, rather than clobbering them?

It's a sixty line JS file that's been online for less than a day. I don't think API stability is a major concern at this point.

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

#29
post #25

I just tested. Like cookies, it also obeys domain-only visibility. So, all hopes for cross-domain user tracking are still doomed. sigh

(to repliers)

This was one of the less obvious uses of sarcasm in recent memory.

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

#30
Anyone know of size limitations on this storage? I am in the middle of writing a jQuery plugin and storing data in cookies which have the 4KB size limitation (which resulted in me having to "chunk" the data across several cookies). This looks like the perfect alternative!
Post reply on HN