ColdFusion 9.0 Resources |
ColdFusion.Layout.selectAccordionDescriptionSelects the specified accordion layout and displays its panels. Function syntaxColdFusion.Layout.selectAccordion(layoutname, layoutareaname) See alsocflayout, ColdFusion.Layout.collapseAccordion, ColdFusion.Layout.createAccordionPanel, ColdFusion.Layout.expandAccordion, ColdFusion.Layout.getAccordionLayout, ColdFusion.Layout.hideAccordion, ColdFusion.Layout.showAccordion, Using layouts in the Developing ColdFusion Applications HistoryColdFusion 9: Added this function Parameters
ReturnsThis function does not return a value. UsageThis function has no effect on a disabled panel. ExampleThe following code lets you select each of the two panels in an accordion layout. <html xmlns="http://www.w3.org/1999/xhtml"> <head> </head> <body> <cflayout type="accordion" name="mainAccordion" accordionheight="300px" style="width:400px"> <cflayoutarea title="First Panel" name="panel1"> <h2>The First Panel</h2> Here are the contents of the first panel. </cflayoutarea> <cflayoutarea title="Second Panel" name="panel2"> <h2>The Second Panel</h2> This is the content of the second panel. </cflayoutarea> </cflayout> <p> Use these links to test selecting tabs via JavaScript:<br /> <a href="" onClick="ColdFusion.Layout.selectAccordion('mainAccordion','panel1'); return false;">Click here to select panel 1.</a><br /> <a href="" onClick="ColdFusion.Layout.selectAccordion('mainAccordion','panel2'); return false;">Click here to select panel 2.</a><br /> </p> </body> </html> |