SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot brakai295's Avatar
    Join Date
    Oct 2005
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Show/hide script wich remembers status?

    Hi there,

    I'm looking for a JS that allows me to show/hide a div layer with the additional functionality that it somehow remembers the status so that when the page is reloaded it is still hidden/displayed.

    Not sure how I can do this. Sessions and cookies would require a page reload when the user clicks on hide/show, right?

    Maybe some ajax script?

    Thanks for your help!

    Kai

  2. #2
    SitePoint Wizard
    Join Date
    Mar 2001
    Posts
    3,537
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    remembers the status so that when the page is reloaded it is still hidden/displayed.

    Not sure how I can do this. Sessions and cookies would require a page reload when the user clicks on hide/show, right?
    There are no sessions in js. js can make data persist by storing cookies on the client and then it can read them later. If the page isn't reloaded, there is nothing that needs remembering.

  3. #3
    SitePoint Zealot brakai295's Avatar
    Join Date
    Oct 2005
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks... I've found a different solution for the problem. cheers


Bookmarks

Posting Permissions

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