Easy way to create local storages by setting the keys and the expiration time.
NOTE: jQuery is required.
Just include toLocalStorage.js
<script type="text/javascript" src="lib/toLocalStorage.js"></script>
- $(yourObject).toLocalStorage("setItem", { Key: "yourKey", ExpirationInMinutes: 60 });
- $.fn.toLocalStorage("getItem", "yourKey")
- $.fn.toLocalStorage("clear", "yourKey");
- Chrome 4+
- Firefox 3.5+
- Safari 4+
- Opera 10+
- IE 8+ (Oh God!)
- Have a more interesting test/example.
- Add further fetures to handle the local storage.