Results 1 to 2 of 2

Thread: animated collapsible div - database driven - persistence problem

  1. #1
    Join Date
    May 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default animated collapsible div - database driven - persistence problem

    1) Script Title: animated collapsible div

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

    3) Describe problem: I've set up a page with the animated collapsible divs, and now the script and page content is pulled from a database. Here's the page:

    http://powelltatedev.com/checklist/test.asp?projectID=1

    Other pages for testing persistence: http://powelltatedev.com/checklist/test.asp?projectID=2 | http://powelltatedev.com/checklist/test.asp?projectID=3

    If you toggle between the three pages (see nav at the top), the divs don't persist... for some reason panel two is the one that each page seems to like... keep seeing that one open, instead of the one you had previously opened before leaving the page. If you view source, all looks good. The javascript is db driven, as are the div names, and links to open/collapse the divs.

    Any ideas as to why the persistence isn't working, why panel two is the panel the code really seems to like for some reason? In nutshell, will have a number of different projects, each using this same page... the projectID is how the collapsible div javascript is made unique (appending the id)... ditto for the divs and links.

    THANKS FOR ANY IDEAS!!! I'm totally stumped on this one.

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

    Default

    On Page 2 and Page 3, inside the initialization code for the script, you've specified "attr2" and "attr3" as the group name, respectively. It should be "attr1" instead, to be consistent with that for Page 1. For example:

    Code:
    animatedcollapse.addDiv('style2', 'fade=1,height=auto,group=attr2,persist=1')
    animatedcollapse.addDiv('standards2', 'fade=1,height=auto,group=attr2')
    animatedcollapse.addDiv('seo2', 'fade=1,height=auto,group=attr2')
    "
    "
    DD Admin

Similar Threads

  1. Problem with Animated Collapsible DIV
    By guruofpc in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 03-05-2010, 01:51 PM
  2. Animated Collapsible DIV v2.4 problem
    By provster in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 01-20-2010, 09:55 AM
  3. Animated Collapsible DIV ie6 problem
    By tommyguntom in forum Dynamic Drive scripts help
    Replies: 9
    Last Post: 05-14-2008, 09:58 AM
  4. Animated Collapsible DIV Problem.
    By bbilal in forum Dynamic Drive scripts help
    Replies: 21
    Last Post: 04-01-2008, 10:44 AM
  5. Animated Collapsible DIV Problem
    By resol in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 09-06-2007, 08:29 AM

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
  •