Jump to content

Advise on how to go about expandable content with cookies.


webmaster1

Recommended Posts

I want to implement expandable content on my site that uses cookies to determine whether the content should remain expanded or contracted.

 

Look to the top right of this page for an exact example of what I'm trying to achieve.

 

Question 1: Is it possible to use cookies to remember expansion/contraction and/or is this something I can apply to visitors based on their IP address without them being members of my site?

 

Question 2: How should I plan this out? Is javascript (client) or php (server) the way to go or will I be using both?

using IP address is not a good idea because you know IP addresses change all the time, also you have sometimes more then one person using the same IP address.

 

The other question, I believe you better stay away from Java Script as much as possible because some users might turn off Java Script.

 

 

Good Luck!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.