Results 1 to 2 of 2

Thread: Keep animated div open on click

  1. #1
    Join Date
    Aug 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Keep animated div open on click

    1) Script Title: Animated Collapsible DIV v2.4

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...e.htm#newattrs

    3) Describe problem: I was wondering if there was a way to keep the div open when I click on it. I am using the div for a forgot password link. It opens, the user types their username and clicks submit then it refreshes and asks them a security question. I would like to know how, and if, I can keep that div open between messages, i.e. keep it open after a user clicks submit so that when it refreshes to the next question they don't have to reopen the div.

    Thank you

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Have you tried enabling persistence in the initialization code of the script? ie:

    Code:
    animatedcollapse.addDiv('cat', 'fade=0,speed=400,group=pets')
    animatedcollapse.addDiv('dog', 'fade=0,speed=400,group=pets,persist=1,hide=1')
    animatedcollapse.addDiv('rabbit', 'fade=0,speed=400,group=pets,hide=1')
    The code in red causes the "dog" DIV to remember and recall its state when the page is reloaded or revisited with a browser session.
    DD Admin

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
  •