I am using Yii CGridView with ajax Pagination and one of the column is Link for image or inline ajax content and i want to use FancyBox to the column.
When i use pagination i lose the binding on the new element.
if i try to make it on element click i always get error if the element has fancy-box already like below
$('a.fancy-img').live('click', function () {
$(this).fancybox({});
return false;
});
But I always get javascript error if i click twice on the same link.