Needs review
Project:
IE6 No more
Version:
7.x-1.0-beta3
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 May 2012 at 12:54 UTC
Updated:
8 Aug 2012 at 08:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
hkirsman commentedHere's something to consider when using Drupals own plugin module:
http://www.jcfiala.net/blog/2011/11/18/drupal-7-and-jquery-cookie-plugin
Drupal 7 and the jquery cookie plugin
18 Nov 2011
Posted by jcfiala
Here's a quick snippet I just found out today: The jquery cookie plugin is presented as part of Drupal 7. This is really cool and useful, but I must note that it's not automatically included on every page load, so you'll want to include it if you want to use it, and as well it doesn't seem to actually be documented anywhere on drupal.org.
Happily, the original documentation for the plugin is at https://github.com/carhartl/jquery-cookie/blob/master/README.rdoc, and is pretty good, although I suggest reading it through at least twice, as at first I missed that you can read, as well as set, cookies with this. Basically the parameters are the cookie name, the cookie value, and then an options object which says the expiration, the path, the domain, and such. Note that the expiration can _either_ be a date, or a number of days.
Hopefully this will help other folks out with using the jquery cookie plugin with Drupal 7.
Comment #2
jonathan_hunt commentedGood catch, thanks. Committed to 7.x-1.x-dev.
Comment #3
geerlingguy commentedIt looks like the cookie is still included in the module's code/download (though it's no longer used). Could you delete the 'jquery-cookie' directory entirely? (Thus saving a nice 20KB of redundant code...).
Comment #4
geerlingguy commentedPatch for this attached... but I don't think I can delete the jquery-cookie directory through the patch.
Comment #5
hkirsman commentedI don't know how relevant this is but GIT does not have folders. If you delete all files in the "folder", directory is gone too.