forked from sebringj/jquery.dumbformstate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
24 lines (20 loc) · 1.13 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
dumbFormState - keeps the state of form entries when you leave and come back later or refresh, etc.
features: Able to keep state in multipe forms across pages in a namespaced way so data does not collide
Author: Jason Sebring, [email protected], 2/23/2011
Public Domain.
You may use under the terms of the MIT License.
http://en.wikipedia.org/wiki/MIT_License
depends on:
HTML 5 storage capability
Browsers supported: IE 8+ and current version of Firefox, Safari, Opera and Chrome
jQuery 1.5 : tested in this version only, try it out on lower versions if you like
json2.js : Douglas Crockford GitHUB -> https://github.com/douglascrockford/JSON-js
configurable options:
$('form').dumbFormState({
persistPasswords : false, // default is false, recommended to NOT do this
persistLocal : false, // default is false, persists in sessionStorage or to localStorage
skipSelector : null, // takes jQuery selector of items you DO NOT want to persist
autoPersist : true, // true by default, false will only persist on form submit
});
instance methods:
$('form').dumbFormState('remove'); // removes all data associated with the forms matching the selector