All Projects → wayne-weibel → Jquery Ezstorage

wayne-weibel / Jquery Ezstorage

Licence: other
jQuery EZStorage Plugin: manages browser side storage of data

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Jquery Ezstorage

elm-storage
Unified interface for accessing and modifying LocalStorage, SessionStorage and Cookies
Stars: ✭ 13 (+85.71%)
Mutual labels:  cookie, sessionstorage
Brownies
🍫 Tastier cookies, local, session, and db storage in a tiny package. Includes subscribe() events for changes.
Stars: ✭ 2,386 (+33985.71%)
Mutual labels:  cookie, sessionstorage
Proxy Storage
Provides an adapter for storage mechanisms (cookies, localStorage, sessionStorage, memoryStorage) and implements the Web Storage interface
Stars: ✭ 10 (+42.86%)
Mutual labels:  cookie, sessionstorage
svelte-persistent-store
A Svelte store that keep its value through pages and reloads
Stars: ✭ 111 (+1485.71%)
Mutual labels:  cookie, sessionstorage
Easy Jquery
EASYJQUERY-可能是最适合你的 jQuery 课程
Stars: ✭ 19 (+171.43%)
Mutual labels:  jquery
Storagedb
MongoDB-like API for HTML5 Storage (localStorage and sessionStorage)
Stars: ✭ 16 (+128.57%)
Mutual labels:  sessionstorage
Festivals
A Grails website that provides information about festivals
Stars: ✭ 5 (-28.57%)
Mutual labels:  jquery
Jquery Rslitegrid
Input tabular data with your keyboard
Stars: ✭ 5 (-28.57%)
Mutual labels:  jquery
Jquery Code Scanner
Lightweight handheld code scanner detector
Stars: ✭ 26 (+271.43%)
Mutual labels:  jquery
Cookie Session
Simple cookie-based session middleware
Stars: ✭ 928 (+13157.14%)
Mutual labels:  cookie
Fasthttpsession
A fast and powerful session package for fasthttp servers
Stars: ✭ 19 (+171.43%)
Mutual labels:  sessionstorage
Push State
Turn static web sites into dynamic web apps.
Stars: ✭ 16 (+128.57%)
Mutual labels:  jquery
Printthis
jQuery printing plugin; print specific elements on a page
Stars: ✭ 902 (+12785.71%)
Mutual labels:  jquery
Declarativ
A declarative HTML rendering library that is definitely not JSX.
Stars: ✭ 16 (+128.57%)
Mutual labels:  jquery
Inputtounsi
A jQuery plugin for entering and validating Tunisian users' data or any other data. It is made very easy to use and easier to customize
Stars: ✭ 25 (+257.14%)
Mutual labels:  jquery
Jquery Powertip
💬 A jQuery plugin that creates hover tooltips.
Stars: ✭ 822 (+11642.86%)
Mutual labels:  jquery
Silhouette
Silhouette is a framework agnostic authentication library for Scala that supports several authentication methods, including OAuth2, OpenID Connect, Credentials, Basic Authentication or custom authentication schemes.
Stars: ✭ 18 (+157.14%)
Mutual labels:  cookie
Filemanager
An open-source file manager released under MIT license. Up-to-date for PHP connector. This package is DEPRECATED. Now, please use RichFileManager available at : https://github.com/servocoder/RichFilemanager.
Stars: ✭ 926 (+13128.57%)
Mutual labels:  jquery
Slide Zilla
Full page slides scroller that works on all screen sizes, no matter the content length
Stars: ✭ 18 (+157.14%)
Mutual labels:  jquery
Laravel Cookie Consent
Make your Laravel app comply with the crazy EU cookie law
Stars: ✭ 895 (+12685.71%)
Mutual labels:  cookie

jQuery EZStorage

jQuery EZStorage is a plugin that simplifies access to HTML5 storages & cookies. The plugin handles determining where and how to store and retrieve data; in HTML5 Storage if it is available, or defaults to cookies.

Functionalities:


Usage

$.ezstorage(action, key, value, options)

overloaded function to manage 'storage'

  • checks if local/session Storage is implemented in the browser
  • checks if cookies are enabled
  • get/set key:value pairs (in Storage or as a cookie)
  • removes key:value pairs (in Storage or as a cookie)

@param String action

  • the action to perform: - 'enabled' = verify that a storage option is possible - 'get' = get a value from storage; returns null, Scalar, Object - 'set' = set a key:value pair; value converted to JSON String if Object - 'remove' = delete a key:value pair

@param String key

  • the key to store; n/a with enabled

@param Mixed value

  • the value to store; n/a with get or remove

@param Object options

  • options for setting the key:value; Optional - n/a with enabled
  • if using HTMLStorage 'value' converted to an Object; value.expires = expireDate, etc.
  • during 'get', check is made for expired; null returned if expired
  • if expires omitted, sessionStorage used
  • Object:
    • expires: Date object (preferred), Numeric number of days, or parseable date String
    • persist: Boolean; whether to place value in localStorage despite expires being set
    • path: String; only used if cookie,
    • full: Boolean; whether to return the full object stored by ezstorage or just value

@return Mixed

  • 'enabled' = Boolean
  • 'get' = null or stored value; will be Object if Scalar set with an expires
  • 'set' = stored value;
  • 'remove' = always True, if not a javascript error occured.

Shorthand Functions ------------------------- ### `enabled()` Check whether a storage method is available; HTML5 Storage or cookies
$.ezstorage.enabled();

get(key, options = {})

Get an item from a storage. Searches localStorage, sessionStorage, and cookies.

$.ezstorage.get('foo');
$.ezstorage.get('foo', {full:true}); // return {ezstorage:true …} not just 'value'

set(key, value, options = {})

Set an item in a storage. If options.expire or options.persist are set value is stored in localStorage, else sessionStorage/cookie.

  • value is stored as an object: {ezstorage:true, <options>, value:<value>}

    $.ezstorage.set('foo', 'value'); $.ezstorage.set('foo', 'value', {expires:3}); $.ezstorage.set('foo', 'value', {persist:true});

remove(key, options = {})

Delete an item from all storages (local, session, and cookie). Options only used if being stored as a cookie.

storage.remove('foo');

Global Object -------------------------
 $.ezstorage.defaultSettings(); // return settings to {ezstorage: true, path:'/'};
 $.ezstorage.settings = {<your settings>}; // no longer need to pass in function

Compatibility -------------

JQuery EZStroage is compatible with all browsers that support (and have enabled) storage/cookies.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].