Results 1 to 3 of 3

Thread: Two Instances of ddAccordion, one controlling the other / ASP.NET

  1. #1
    Join Date
    Mar 2007
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Two Instances of ddAccordion, one controlling the other / ASP.NET

    I'm wondering if there's a way to have two DDACCORDION controls (http://www.dynamicdrive.com/dynamici...uppliment2.htm) stacked on top of each other, and have the top one control the content of the bottom.

    I'm not sure I'll be able to use an iFrame, as the bottom control's height is going to vary wildly, and may be the object that extends the page beyond the body content. I haven't tried that yet, but I imagine it's going to be squirrely.

    So what I have is something like this (it's not this, but for sample, it almost works)

    ======================== ddAccordion 1: Category
    APPETIZERS
    [our appetizers are home made blah blah blah]
    BREAKFAST
    LUNCH
    DINNER
    ======================== ddAccordion 2: Detail
    ONION RINGS
    [deep fried to a golden brown, served with blah blah blah]
    CALIMARI
    POTATO SKINS
    ETC


    There will be only one open at a time. So when you drop, Appetizers is open, as is Onion Rings as the first / default option. When you click on BREAKFAST, the ddAccordion2 should "go away" and be replaced with a new one with OMELETTE, PANCAKES, etc. Not every menu item will be listed, so it's not controlling the second one from the top one, it's effectively replacing the bottom one with the top one.

    I'm using ASP.NET AJAX for all of this, and my "raw" Ajax skills are pretty meager. I'm not sure what I'd be able to do with OnInit, maybe I just load all of the items, and do a show/hide of the ones that are there... hrmmm... There will be up to 15 "categories", and potentially 100s of "Details" in my application.

    There seem to be many ways to skin this cat, and I'm wondering if there's anything relatively easy to do, and if not easy, stable in most browsers. I don't know if there's any canned support for something like this that I'm missing, in part because I'm fetching my data with asp.net and have the vertical problem with using an iFrame.

    Thoughts?

    Thanks much!

  2. #2
    Join Date
    Aug 2004
    Posts
    9,918
    Thanks
    3
    Thanked 969 Times in 957 Posts
    Blog Entries
    15

    Default

    A cleaner way to do this may be to just implement a nested Accordion Menu. If you look at the 2nd example on this page, it shows such an Accordion in action.
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    plankalkul (03-15-2013)

  4. #3
    Join Date
    Mar 2007
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    That is damn sexy.

    I did not see that example, that's awesome. I implemented it with a show/hide of DIVs, works nicely, but with this nesting and potential to load on expand, this IS a much cleaner way.

    Thanks DDA!

Similar Threads

  1. Replies: 0
    Last Post: 12-27-2010, 08:29 PM
  2. controlling scroll while using frame
    By aqeel in forum CSS
    Replies: 1
    Last Post: 10-01-2009, 07:48 PM
  3. Controlling Checkboxes
    By JBottero in forum JavaScript
    Replies: 3
    Last Post: 05-25-2009, 08:18 AM
  4. controlling flash with html
    By stevedc in forum Flash
    Replies: 1
    Last Post: 05-27-2008, 03:01 PM
  5. Controlling image backgrounds
    By jelijo in forum HTML
    Replies: 6
    Last Post: 01-18-2008, 08:52 PM

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
  •