You can programmatically open and close the Collapsible Panel widget by using JavaScript functions. For example, you might have a button on your page, that opens the collapsible panel when the user clicks the button.
Use the following functions to open or close a
collapsible panel:
<input type="button" onclick="CollapsiblePanel1.open();" >open panel</input>
<input type="button" onclick="CollapsiblePanel1.close();">close panel</input>
<script type="text/javascript">
var cp1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1");
</script>
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/WSA90BD21E-1D84-4a2e-ABDD-E2F1EF835890.html
Comments
JS3der said on Jun 12, 2008 at 12:56 PM :