Results 1 to 3 of 3

Thread: toggling haccordion visibility

  1. #1
    Join Date
    Sep 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default toggling haccordion visibility

    1) Script Title: toggling haccordion visibility

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

    3) Describe problem: I would like to place haccordion in a 'container' div which will be showed to the user after a button click.
    I toggle the visibility in java script by adding "display:block" or "display:none" to the 'container' div.
    It is working fine when the 'container' div is initially set to "display:block".
    When it is initially set to "display:none" then the haccordion is working but the hpanels are not displayed.
    Would you please tell me how to handle this? Thank you in advance.
    Kind regards,
    Bryno.
    Last edited by bryno; 09-08-2010 at 12:28 PM. Reason: typo

  2. #2
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    I am guessing it is a question of the ajax failing to work when it is set to display none. Maybe you could use visibility:hidden instead

  3. #3
    Join Date
    Sep 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for your reaction. Unfortunately. Using visibility will also show the placement for the div containing the haccordion, which initially must be invisible to the user. For a quick workaround I had to use a 'fake' control, resembling horizontal accordion, but missing the slide effect. I will however try to hack the issue when the deadlines are gone.

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
  •