Results 1 to 1 of 1
Mar 4, 2009, 13:42 #1
- Join Date
- Apr 2008
- 0 Post(s)
- 0 Thread(s)
lightbox+ajax-loading page problem
Recently, I've tried to use FancyBox (a zooming lightbox script - affects every image link of a given parent id) on a page where contents are loaded dynamically with jquery.
I init fancybox at the loading of the needed section - then, I click on the image link, fancybox's darker overlay appears for a sec, but then the target image itself loads (as if no script would be there). As it seems, FB was initalized, but is somehow not working... js debug shows nothing wrong.
Since the whole page is loaded dynamically with jquery, I can't really separate the problem - the script is working good when it's in static context. Before, I used a quite similar script FancyZoom, that worked without problem...
I've uploaded a working template below, I would be very grateful if someone could give it a quick peek:
(on the site click the green, then the purple rectangle. the init can be found in js/script.js, in InitThree function)