Reload javascript after an ajax request


I am gonna try to explain my problem the best I can.

I have a few checkboxes, that I transform in JQuery button, with CJuiBUtton widget :

$this->widget('zii.widgets.jui.CJuiButton', array(



	'caption'=>' ',






These checkboxes represents an hour, in a day, for a weekly planning. When I change the week, I use Ajax to reload the planning, but the JQuery script isn’t reloaded, so my checkboxes are regular checkboxes, and not JQuery UI buttons.

My Planning is a Widget, and this widget register some scripts (including the JQuery UI script), but they are not reloaded when I use ajax.

If I am not clear, tell me and I will try to explain better.

Thanks you very much


can you please show your render-calls? If you are using a renderPartial you probably need to set the processOutput parameter to true (renderPartial(‘view’,$params,false,true);

Thank you ! This was exactly what I needed ! This is now, almost, working.

But now, when I change the week, the checkboxes become JQuery UI button, except that they do not have the same design, but I may have an idea about this, so thank you :)

eirikhm, thanks a lot - processOutput was exactly what i searched for