Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/enriikke/vape
Lightweight jQuery plugin that automatically saves form data.
https://github.com/enriikke/vape
Last synced: about 1 month ago
JSON representation
Lightweight jQuery plugin that automatically saves form data.
- Host: GitHub
- URL: https://github.com/enriikke/vape
- Owner: enriikke
- License: mit
- Created: 2013-08-01T23:28:09.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-08-02T00:20:40.000Z (over 11 years ago)
- Last Synced: 2024-11-04T05:42:22.267Z (3 months ago)
- Homepage:
- Size: 85.9 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Vape
====Vape automatically saves your form data in case of a browser crash (or dropping your laptop from the rooftop of a building before hitting send on that important job application). The magic is done using HTML5 Local Storage and fallbacks to cookies if you are using an awesomeless browser (you know who I'm talking about). Once the form is submitted all data is cleared out.
## Usage
Just pass in the forms you want to protect and you are done! Non-intrusive awesomeness.
```javascript
// Protect a single form
$('#contact-form').vape();// Or protect all forms
$('form').vape();```
## Dependencies
* jQuery: Vape was built using jQuery version 1.8.0 so anything from 1.8.0 and above should be good to go.
* Forms need to have IDs: this is a weird "dependency" but right now Vape depends on a form ID in order to accurately save and restore data. I promise I will work on eliminating this just hang in there.## License
Vape is under the MIT open source license. Check out the license file for more :)