webmaster1 Posted February 11, 2010 Share Posted February 11, 2010 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? Quote Link to comment Share on other sites More sharing options...
Hussam Posted February 11, 2010 Share Posted February 11, 2010 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! Quote Link to comment Share on other sites More sharing options...
webmaster1 Posted February 11, 2010 Author Share Posted February 11, 2010 Thanks for the feedback, Hussam. Quote Link to comment Share on other sites More sharing options...
Hussam Posted February 11, 2010 Share Posted February 11, 2010 Your welcome, any time. Good luck! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.