JavaScript - Cookies 03-27-2014, 02:27 AM
#1
Well, because I'm fucking retarded, I can't get cookies to work for the life of me. Let me explain the situation.
I am working on a MyBB theme that has a colour picker, yet I can't set or grab the users' cookies.
Of course those aren't the actual name of the functions, but I just need to be able to set the cookies and grab them without the the error/s that I'm having.
I'm pretty sure document.cookie is supposed to work.
I also need to grab the cookie and set a value to be different because of the cookie's value. But I can do that part on my own.
I am working on a MyBB theme that has a colour picker, yet I can't set or grab the users' cookies.
Code:
function fuckYou(name) {
document.cookie = "fuckYou="+name;
}
function duubzTheFag() {
alert(document.cookie);
}Of course those aren't the actual name of the functions, but I just need to be able to set the cookies and grab them without the the error/s that I'm having.
I'm pretty sure document.cookie is supposed to work.
I also need to grab the cookie and set a value to be different because of the cookie's value. But I can do that part on my own.
![[Image: BXqGARG.png]](https://i.imgur.com/BXqGARG.png)










![[+]](https://sinister.li/images/modern/collapse_collapsed.png)

![[Image: screenshot_108.png]](http://s21.postimg.org/reblu4von/screenshot_108.png)