jQuery.cookie.js - Concrete5 and cookies

Permalink
Hi,

The jQuery.cookie.js does not seems to work with Concrete5 very well.. It doesn't save the cookie on IE, Safari or FF. I think it could be a conflict with the 'normal' session cookie of C5.

The cookie needs to be save if you agree with the disclaimer, and it won't show up for a month. But it pops up every page, every time. Exept when you login and Then accept the disclaimer (/cookie). Then it does saves and stores the cookie. How is this possible? Has anyone encountered this?

FischerVision
View Replies: View Best Answer
Blenderite replied on at Permalink Reply
Blenderite
FischerVision replied on at Permalink Reply
FischerVision
Alright, screw the fancybox. This is just as nice. But now I have another problem. I've added my own stack (my own text) and now the accept button is disappeared. How can I call this button?

Edit: Nevermind.... Just had to insert the cookie form.. Thanks.
Blenderite replied on at Permalink Reply
Blenderite
Glad I could help you. Feel free to mark as best answer!

-Blenderite
FischerVision replied on at Permalink Reply
FischerVision
It's not a real answer. But it is a pretty good work around!
Blenderite replied on at Permalink Reply
Blenderite
Unfortunately it is the best answer for now.
TheRealSean replied on at Permalink Best Answer Reply
TheRealSean
hmm, we do have a working jquery cookie banner that appears to work?

Try checking out,
http://www.equinetmedia.com/

We did recently have to upgrade the script version we use,

https://raw.github.com/carhartl/jquery-cookie/master/jquery.cookie.j...

Then script we use to load/save the cookie,
$(document).ready(init_cookie);
function init_cookie(){
   $('#cookie_ok').click(handle_ok);
}
function handle_ok(){
   $.cookie("eqco", "1", {expires: 1000, path: '/'});
   close_dialogue();
   return false; //stop processing the link
}
function close_dialogue(){
   //$('#cookie-box').animate({bottom: -70}, 1000, function(){
      $('#cookie-box').hide();
   //});
}