Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

problem collapsible tab

Guest
Dec 23, 2008 Dec 23, 2008
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
TOPICS
Server side applications
392
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 23, 2008 Dec 23, 2008
LATEST
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
>
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines