views:

21

answers:

0

Dear All, I've an Accordion widget, I need to call JS methods on click of the Accordion title as well as on click inside the content. Can someone please help me to do this? I've my code below.

    var aContainer = new dijit.layout.AccordionContainer({style: "float:left;width:175px;height:205px;",},"testAccordion");
//Below code is inside a loop, so new children are created inside it.
aContainer.addChild(new dijit.layout.ContentPane({
                        title: '<%=businessSoln.getTitle()%>',
                        content:"<%=businessSoln.getShortDescription() %>",dojoAttachEvent:"ondijitclick:testMethod2"  
                    })

Thanks in advance, Apps.