https://github.com/victornpb/formstorage
Javascript "library" that I used to save the state of an entire form
https://github.com/victornpb/formstorage
form javascript persistence vanilla-javascript
Last synced: 7 months ago
JSON representation
Javascript "library" that I used to save the state of an entire form
- Host: GitHub
- URL: https://github.com/victornpb/formstorage
- Owner: victornpb
- Created: 2014-05-15T04:02:52.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2019-09-07T18:42:25.000Z (about 6 years ago)
- Last Synced: 2025-02-09T03:26:37.051Z (8 months ago)
- Topics: form, javascript, persistence, vanilla-javascript
- Language: JavaScript
- Homepage: http://victornpb.github.io/formStorage
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# formStorage
Javascript "library" that I used to save the state of an entire form* formStorage.js
* @author Victor N - www.vitim.us
* Created on 21-jan-2012
*
* Use saveFormToObject() store the state of all input elements of a form automaticly and export to Object or JSON
* Use loadFormFromObject() to read the Object or JSON stored and update the state of all input elements of a form
*
* All inputs, textareas, and selects that have a ID name is stored,
* if a element doesn't have a ID it will be ignored.
*
* The JSON text can be transmited via Ajax or stored to LocalStorage or Cookies
*
* If 2 elements have the same ID information will be replaced, and cause possible crash on loadFormFromObject
*