Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Aug 2002
    Location
    UK
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy JavaScript Cookies: Different page depending on user's preference

    I currently have a frame on my website to select the background music (a simple table with a drop-down list and an <EMBED> tag). I have been trying to use cookies to remember this choice between visits, but all to no avail.
    I have tried various scripts for multiple JS archives and they all either give errors or direct me to the wrong page. I havn't even been able to get one of them to set a cookie.

    Please can someone help me with both the setting the cookie (to choose the prefered page (there is a different page for each piece of music)), the changing of the cookie (in case the user changes their mind) and also reading the cookie and redirecting to the required page.

    Thanks a lot.

  • #2
    Regular Coder
    Join Date
    Aug 2002
    Location
    Silicon Valley, CA
    Posts
    980
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think I can help you, but do you have a link or something so that I can see exactly what you're trying to do?

  • #3
    Regular Coder
    Join Date
    Aug 2002
    Location
    Silicon Valley, CA
    Posts
    980
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Use the cookie scripts that I explained in this post:

    http://www.codingforums.com/showthre...&threadid=4712

    It may help you with what you're trying to do.

  • #4
    New to the CF scene
    Join Date
    Aug 2002
    Location
    UK
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    OK, well the address of the page is http://www.gillard.plus.com/mcg/default.htm and as you will be able to see the top frame of that selects the background music.
    I would like to have the selection saved as a cookie on the user's computer so that they only have to select it once.
    I don't mind having to include a popup window with the drop-down list of background music, which can then link to something if that is required.
    Currently there is only 1 piece of music on there because I havn't got round to doing the others yet. There will be about 20 when I've done them all though.

    Thanks again.


  •  

    Posting Permissions

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