This Class supplies an interface for a cross-browser local storage. For browsers that support this feature (FF2+, IE5+, Safari 4+) it will use the built in storage mechanism. For other browsers it will use Cookies.
The Current Browser Support:
Pretty simple - initialize, then use the setters and getters:
var st = new LocalStorage(); st.set('name',{a:'aaa',b:'bbb'}); //on another day/page st.get('name'); st.remove('name');
A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.
Found a bug in this plugin? Please report it this repository's Github Issues.
blog comments powered by Disqus