View Full Version : Ajax content with LightBox Code:Problem

09-24-2007, 08:55 PM
1) Script Title: LightBox

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm

3) Describe problem:
I have a tabbed menu page. clicking on each tab shows a vertical sub menu and pictures(thumbs). the submenu and thumbs are coming from a php page throught AJAX. I included all the files for implementing LightBox in the tabbed menu page. and used the exact technique for lighbox image
<a href=BIG_IMAGE_NAME rel="lightbox"><img src=THUMB_NAME /></a>
in the php page

but lightbox isnot working...images are just opening as if i didnot use rel="lightbox"...i have tested with static images in the tabbed menu page...lightbox is working then...but not when a content coming through AJAX has lightbox call.

what is wrong? can anyone help me?

I am using the latest prototype.js and lightbox from DD

11-01-2007, 06:55 AM
I am having this exact same problem also. I have been searching for literally weeks and cannot find a solution to this issue anywhere. If anyone could shed some light (no pun intended) on this, it would be greatly appreciated.

11-01-2007, 07:05 AM
Install the lightbox scripts and css on the top page and see: