ajaxLink deployed from loaded ajax page


My problem is, that I load part of my HTML page (div) via ajax request, and in this loaded content I invoke CHtml::ajaxLink.

The point is, that it doesn’t work since all this ajaxLink autogenerated stuff like jquery code is not available (or has the same id’s like values generated previously on page - where I also use ajaxLink).

How should I fix it ? The only solution ATM is reloading a page.

You need to make sure you’ve added a unique id for the ajaxLink in htmlOptions, and in your controller instead of



$this->renderPartial("viewname",array(),false,true); // Processes the output