View Full Version : toggling haccordion visibility

09-08-2010, 11:26 AM
1) Script Title: toggling haccordion visibility

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/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,

09-08-2010, 11:19 PM
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

09-09-2010, 08:08 AM
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.