Does anyone know how to register a state change of the CJuiAccordion widget. I know the widget sends an change event, but how do i program that an action is called from the Controller? I want to do this so that i can present the last state of the accordion after a new page request.
I think thats better clarified a little, since most people will be using a CJuiAccordion widget:
$(document).ready(function() {
$("#yw0").bind("accordionchange", function(event, ui) {
// do stuff, make sure you have the correct ID for the accordion
}
});
});
accordion() is not needed and will cause problems.
Thanks for the clarification. It seems like I didn’t use the Zii CJuiAccordion in that project. (Zii was incorporated in the framework core Aug 20 2010).