View Full Version : Lightbox + "Dynamic Ajax Content" fails

06-05-2006, 10:39 PM

I'm trying to combine Lightbox (Ligthbox Plus mod) with "Dynamic Ajax Content (http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm)".

I load several seperate html-files into a content-div on my main-page. Some of them display images with Lightbox. Loaded seperatly in the browser it works great, but once called from the main-page it doesn't.

One of the files separately: lightbox_debug_test.html (http://www.boenglund.se/lightbox_debug_test.html)

Main page (Load the same file with the "test page"-link): Main page (http://www.boenglund.se/index_test.html)

With "Dynamic Ajax Content" there's a possibility to pass along instructions to load external css and/or js-files but there's something wih the lightbox-code that doesn't make it work.

I've added a little mini-function to confirm when the script are loaded and from that I understand that nothing of the script loads, so I don't think there is a simple initLightbox()-solution to it. Loaded CSS-files works though.

I really hope some kind soul could shed some light over this...

thanks in advance!