Tag Archives: cookies

Cookies Basics

Portfolio section, Show/Hide Panels button

I can now write cookies. I had been avoiding it for a while because I knew it would be a little more complex than basic JavaScript, and that I don’t like how cookies are used for “evil” sometimes. Cookies have a bad rap of taking personal information and whatnot, and I want to avoid that for my sites as much and as long as possible. And now I’m using it only to enhance visitor experience and it does not collect personal information.

I created an experiment with cookies in my Experiments section. It involves taking a name and storing it into the browser cookies, and then also created a switch button that just makes a setting go on and off. I did it for my portfolio section, where I want the visitor to have the option to show the “panels” of navigation within the portfolio section or to hide them, and not have to keep setting it every time the visitor returns to the site.

It’s a basic function, and it’s non-intrusive, and it still works without the function or JavaScript. In fact, if the browser disables JavaScript, the button disappears! You can test it yourself with your browser. And like I said before, the portfolio page exists; follow my site’s navigation format and you’ll get there.

Flush.