The plugins site is currently in development.
We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.
Object-oriented Javascript cookies
A Object-oriented Javascript cookie implentation.
NOTE: code based on jquery.cookie.js
Create a cookie object with multiple property/values
var c = new $.cookie();
c.field1 = value1;
c.field2 = value2;
c.set();
NOTE: code based on jquery.cookie.js
Create a cookie object with multiple property/values
var c = new $.cookie();
c.field1 = value1;
c.field2 = value2;
c.set();Get the property/values of a cookie object
var c = new $.cookie();
c.get();
alert('field1 = '+c.field1);Set/Get a named cookie
var c = new $.cookie();
c.cookieID = "cookieName"NOTE: 'cookieID' field is reserved
Other options available: See documentation...
Download: jquery.ooCookie.js
Downloads
Development
(2 votes)
