Results 1 to 2 of 2

Thread: Session cookie etc to remember my last selection

  1. #1
    Join Date
    Apr 2012

    Session cookie etc to remember my last selection

    Hi there,

    I have been looking for a solution to the following:

    My site has three buttons or hyperlinks as buttons. With each one I click it changes the display layout of the items in my cart. If I choose a different category from the list in the sidebar the display layout goes back to the default instead of remembering my previous selection. Is there anyway I can achieve this with JQuery or not?

    I am new to this so any help will be fantastic?

  2. #2
    Join Date
    Mar 2009
    Wherever i lay my hat
    If choosing a different category reloads the page, then remembering it with JS (e.g. storing in a variable) is no good. You could use cookies, but i would suggest just changing a part of the url. Maybe something behind a hash tag like http://your.url/category/idontknow#2, where #2 means second display layout. If you could extract some html from your page and demonstrate here, what you have, you will get more thorough advice.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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