Skip to content
A jQuery plugin to make localStorage easy and manageable to use
Find file
Pull request Compare This branch is 3 commits behind tarellel:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
examples
.gitignore
README.textile
jquery.Storage.js

README.textile

jQuery.Storage

This plugin provides a simple wrapper to store data in the browser. This allows data to be recalled later on for settings, saved state, etc.

**Code Sample

 // Saving
  $.Storage.saveItem('cow','moo');

  // Loading
  $.Storage.loadItem('cow');

  // Delete
  $.Storage.deleteItem('cow');

  // Clear all values
  $.Storage.deleteAll();

TODO

  • Fix null return error when trying to load from cookie
  • Fallbacks
    • Use something similar to Gallery Storage Lite for fallbacks
      • localStorage – Firefox 3.5+, Chrome 4+, Safari 4+, IE8, Opera 10.5+
      • globalStorage – Firefox 2.x and 3.0.x
      • sessionStorage – n/a
      • databaseStorage, – Safari 3.1 and 3.2
      • userData persistence – IE6, IE7
      • Consider using SWFstore to store flash cookies as well
  • Output to console.log(“Error Message”) when an error is produced
Something went wrong with that request. Please try again.