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?

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.