Skip to content

A jQuery plugin to make localStorage easy and manageable to use

Notifications You must be signed in to change notification settings

user996015/jquery.Storage

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A jQuery plugin to make localStorage easy and manageable to use

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published