You can programmatically open different panels by using JavaScript functions. For example, you might have a button on your page that opens a particular accordion panel when the user clicks the button.
Use the following JavaScript functions to open
accordion panels:
<input type="button" onclick="acc10.openFirstPanel()" >open first panel</input>
<input type="button" onclick="acc10.openNextPanel()" >open next panel</input>
<input type="button" onclick="acc10.openPreviousPanel()" >open previous panel</input>
<input type="button" onclick="acc10.openLastPanel()" >open last panel</input>
<script type="text/javascript">
var acc1 = new Spry.Widget.Accordion("Accordion1");
</script>
You can also use acc10.openPanel(panelNumber) to
open any panel. The accordian panels use a zero-based counting system,
so setting the value to 2 opens the third panel.
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/en_US/Spry/SDG/WSE03B96F0-A409-4dc0-830E-EA05F91492D7.html
Comments
No screen name said on Apr 23, 2008 at 6:55 PM :