Hi!
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.
Page 1 of 1
ajaxLink deployed from loaded ajax page
#2
Posted 25 June 2010 - 06:26 AM
dotangelo, on 24 June 2010 - 05:26 PM, said:
Hi!
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.
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());
do
$this->renderPartial("viewname",array(),false,true); // Processes the output
Share this topic:
Page 1 of 1

Help











