I am currently using the ajax helper found at http://www.cakephp.bee.pl/
I have accordion i would like to update using $this->ajax
here is code for the ajax form submit button
<?php echo $ajax->submit('Submit', array(
'url'=> array(
'controller'=>'qnotes',
'action'=>'add'
),
'update'=>'divleft',
'position'=>'html',
'before'=>'$("accordion").accordion("disable");alert("before");',
'after'=>'$("#accordion").accordion("destroy").accordion({autoHeight: false, collapsible: false , active: false, header: "h3"});alert(response.requestText)',
'complete'=>'$("#accordion").accordion("destroy").accordion({autoHeight: false, collapsible: false , active: false, header: "h3"});',
'success'=>'$("#dialog1").dialog("close");'
));
?>
here the format of the accordion
The Issue.
Cannot update the accordion with out losing the accordion functionality and if the accordion updates it loses its accordion styling.
Is there something wrong in my code