Skip to main content
Participant
January 23, 2017
Answered

spry accordion panel

  • January 23, 2017
  • 2 replies
  • 392 views

Hi, I am working on a photography website. I created 5 accordion panels with Dreamweaver cs6 for the different fields. In the accordion panels, there are ca. 30 images. The panel height and with is auto, so I don't use fixed panel heights. My problem is that when I open the next panel, it opens in the middle, not on the top where I want. Is there any solution for this? (I don't want to use fixed panel heights if it is possible) Thanks!

    This topic has been closed for replies.
    Correct answer Nancy OShea

    My problem is that when I open the next panel, it opens in the middle, not on the top where I want. Is there any solution for this?

    No.  That's not how accordions work.   For what you want, you can use AJAX calls to load content dynamically.

    https://css-tricks.com/rethinking-dynamic-page-replacing-content/

    FYI: Spry was removed from DW CC.  The code has not been updated since 2006.  Adobe abandoned Spry in late 2012.   Most people have moved away from Spry Widgets to other more modern solutions.

    Nancy

    2 replies

    Nancy OShea
    Community Expert
    Nancy OSheaCommunity ExpertCorrect answer
    Community Expert
    January 23, 2017

    My problem is that when I open the next panel, it opens in the middle, not on the top where I want. Is there any solution for this?

    No.  That's not how accordions work.   For what you want, you can use AJAX calls to load content dynamically.

    https://css-tricks.com/rethinking-dynamic-page-replacing-content/

    FYI: Spry was removed from DW CC.  The code has not been updated since 2006.  Adobe abandoned Spry in late 2012.   Most people have moved away from Spry Widgets to other more modern solutions.

    Nancy

    Nancy O'Shea— Product User & Community Expert
    Community Expert
    January 23, 2017

    If you are using an accordion panel only the one on the top will always be at the top.  What is happening with an accordion is that the content area is expanding upon clicking.  It's not actually changing the order in which the results are displayed.  If you want all of the content to replace the existing content in the same position, you might want to consider trying tabs instead of an accordion.  If this isn't it at all and you think there is an error with the way it is working it would be best to post a link to the page in question.