Plugins

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.

Patch/update allowing creation/retrival of multiple cookies,


Project:Cookie
Version:1.0
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:patch (code needs review)
Description

Hi. I'd like to submit this proposal for adding support for two new use-cases, that I think are valuable:

1) Create multiple cookies at once stored in an object, with optional parameters affecting them all. (Example: $.cookie({ 'cookie1':'value1', 'cookie2':'value2' });)

2) Get the names and values of all cookies for the page. (Example: var allCookies = $.cookie();)

The new features add only a few bytes to the current code size, and cost almost no extra processing cycles for the browser.

P.S. I also made minor improvements/size-optimizations, in a couple of places, to the current code.

AttachmentSize
jjquery.cookie-modified.js_.txt6.46 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

#1

My impression is that the first extension uses multiple cookies for a javascript object. It seems that some browsers (IE6) only accept a limited number of cookies per domain: http://plugins.jquery.com/node/2295/

So instead of the first extension it is better to use json values in the cookies. This can be done by adding some javascript on top of this jquery cookie plugin:
http://lab.distilldesign.com/json-cookie/jquery.jsoncookie.js
See also http://lab.distilldesign.com/json-cookie/

Since the length of a cookie is limited, a combination of json cookies and multiple cookies would be even better.

#3

iPad Video Converter is then designed for iPad fans to convert videos to iPad. This special ipad video converter can convert all video formats to iPad compatible formats. ipad converter| DVD to ipad| ipad to Mac transfer| ipad to computer transfer| ipad transfer| ipad to epub|
iPad Converter|

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.