I use Blog-Sample. I converted the Main link into ajax link (using CHtml::ajaxLink…) and for a small sample, I modified actionContact render to renderPartial.
The I checked my page, after I clicked Contact link, the ajax calls actionContact and update content DIV.
right…
Then, I realize something missing… In Contact page, there is a Captcha widget but the ‘Get a New Code’ link is missing… after digging up through this forum,
Normally JavaScript code supplied by widgets or components will be registered by yii at certain position in the actual page. Mostly the POS_READY position is used. Which means that the code will be place in at the end of the page in the ready function. If you use renderPartial to update a container via ajax the function that renders the js code will never be invoked.
If you retrieve parts of the page, you have to make sure that your js code is delivered with it and not through the register script function of yii.
Thats why ‘clickableImage’ works because the js part is placed as an ‘onClick’ attribute of the img tag.