Login Register






JavaScript - Cookies filter_list
Author
Message
JavaScript - Cookies #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.

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]

Reply

RE: JavaScript - Cookies #2
It seems to work fine for me.

Reply

RE: JavaScript - Cookies #3
If you're trying to use it on chatango, Then you may get some errors.
Chatango seems to hate us being creative.
[Image: screenshot_108.png]

Reply