Using jQuery Cookies
philbar - July 1, 2009 - 20:49
| Project: | jQuery plugins |
| Version: | 6.x-1.9 |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
I would like to add cookies which change the blocks and menu items of my website for unregistered user.
For example, if a visitor clicks a link which adds a cookie telling my site the user is part of the government, the site adds a GSA Advantage block. This block will be hidden for business and consumer visitors.
If a user clicks a link to add a "business" cookie, it hides certain consumer-level products from the primary menu.
I think I need a cookie which will classify users as "Consumer", "Business", or "Government" which notifies drupal when to display certain blocks or menus. It jQuery Cookie the right plugin for this?
