Results 1 to 3 of 3

Thread: no cookies on Chained Select Menu

  1. #1
    Join Date
    Sep 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default no cookies on Chained Select Menu

    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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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:
    Code:
    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 "";
      }
    }
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Sep 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you, John!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •