PDA

View Full Version : no cookies on Chained Select Menu



soundspacific
09-28-2005, 09:19 PM
How do I disable all the cookies activity written into this script (Chained Select Menu)? I want to turn this feature off so that a person's browser does NOT remember the last setting the person was on.
Thanks,
Chris

jscheuer1
09-29-2005, 04:28 AM
Open up chainedmenu.js with a text editor and find these three functions, they are fairly near the end. Make the additions shown in red:

function _setCookie(name, value) {
return;
document.cookie=name+"="+value;
}
function cs_setCookie(name, value) {
return;
setTimeout("_setCookie('"+name+"','"+value+"')",0);
}

function cs_getCookie(name) {
return "";
var cookieRE=new RegExp(name+"=([^;]+)");
if (document.cookie.search(cookieRE)!=-1) {
return RegExp.$1;
}
else {
return "";
}
}

soundspacific
09-29-2005, 01:00 PM
Thank you, John!