Hello guys,
I am using fancybox extension in yii. There is a div containing links to open fancybox. At this point fancybox is working perfectly. In my code ajax is updating this div's content and generating the same links to open fancybox. But after updating the div's content the links to open the fancybox is not working.
What am I missing? Please save me. Its killing me.
Page 1 of 1
links inside ajax generated list not working
#2
Posted 08 July 2012 - 04:11 AM
I didn't use fancybox, but here is a guess: links are handled by javascript and after you update html the javascript is not returned.
The solution can be whether use something like jQuery live() or delegate() method to bind javascript handlers or use renderPartial method with prpcessOutput parameter set to true, like renderPartial("view", false, true).
The solution can be whether use something like jQuery live() or delegate() method to bind javascript handlers or use renderPartial method with prpcessOutput parameter set to true, like renderPartial("view", false, true).
#3
Posted 04 September 2012 - 01:09 AM
add Yii::app()->clientScript->scriptMap['*.js'] = false; before renderPartial .
Share this topic:
Page 1 of 1

Help













