Hi I'm having trouble with dynamically loaded content.
I'm working on a .net project where I want to use fancybox.
In my code behind files I get images from the database and load these to the page.
the images show nicely, but fancybox does nothing.
If i make a direct link to the images in my html file fancybox does work.
the rendered html for the dynamically loaded images and the direct called images is identical:
<a class="fancybox" href="/files/__banner/Slider-2.jpg"><img alt="" src="/files/__banner/Slider-2.jpg"></a>
I load fancybox with:
<script type=\"text/javascript\" language=\"Javascript\">
$(document).ready(function () {
$(".fancybox").fancybox();
});
</script>
What am i doing wrong, or what am i missing.
Hope somebody can help me.
Greetings,
Maarten