![]() |
|
JavaScript - Cookies - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: Coding (https://sinister.li/Forum-Coding--71) +--- Thread: JavaScript - Cookies (/Thread-JavaScript-Cookies) |
JavaScript - Cookies - Equinox - 03-27-2014 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. RE: JavaScript - Cookies - Lain - 03-27-2014 It seems to work fine for me. RE: JavaScript - Cookies - TryhardHusky - 04-15-2014 If you're trying to use it on chatango, Then you may get some errors. Chatango seems to hate us being creative. |