Skip to main content
December 23, 2008
Question

problem collapsible tab

  • December 23, 2008
  • 1 reply
  • 389 views
I have a collapsible tab menu, see: http://justiciadedios.com/biblioteca.php

Its a menu of book and with its chapters. I will like to keep the tab open when Im viewing a particular book. right now when I click in a chapter of a book the tap close.

how can I do it
This topic has been closed for replies.

1 reply

Inspiring
December 24, 2008
For that sort of thing, I'd use the Spry Accordion instead of the
Collapsible Panels - you can use PHP to determine which main tag is
selected based on the capID, and then feed the value from PHP to
JavaScript in the Spry collapsible panel settings:

<script type="text/javascript">
var acc1 = new Spry.Widget.Accordion("Acc1", {
defaultPanel: <?php print($tabIndexToOPen); ?>
});
</script>


jesurum wrote:
> I have a collapsible tab menu, see: http://justiciadedios.com/biblioteca.php
>
> Its a menu of book and with its chapters. I will like to keep the tab open
> when Im viewing a particular book. right now when I click in a chapter of a
> book the tap close.
>
> how can I do it
>