+ Start a Discussion
priya burghatepriya burghate 

About Galic.js

Can anyone please give me details about garlic.js which is used for preserving data values in forms.
Please me provide explanation and coding link .....
bob_buzzardbob_buzzard
Galic.js uses HTML5 localstorage to persist data on the client, so as soon as you enter information into a field it is stored on the browser and available for later retrieval, even if offline.  One thing to be aware of is that localstorage is not secure, so other web pages can easily gain access to the values stored by a web page using Galic.js.

There's coding information at:

http://garlicjs.org/#usage

but there isn't much to it - its mainly decorating the form elements with HTML5 data- attributes.