-
cookie problems
function savemenustate(){
var inc=1;
var blockid="";
var cookiename="";
var cookievalue="";
var cc="";
while(document.getElementById("sub"+inc)){
if(document.getElementById("sub"+inc).style.display=="block"){
blockid="sub"+inc;
cookiename=(persisttype=="sitewide")?"switchmenu":window.location.pathname;
cookievalue=(persisttype=="sitewide")?blockid+";path=/":blockid;
cc+=cookiename+"="+cookievalue;
}
inc++;
}
document.cookie=cc;
alert(cc);
alert(document.cookie);
}
whi is this not working?
-
-
This is a script fragment, so it is hard to be precise. Works fine here though, two blank alert boxes and no errors in OP, FF or IE. What did you want it to do?
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks