View Full Version : HELP with "Dynamic Ajax Content"

07-16-2007, 03:23 AM
1) Script Title:
Dynamic Ajax Content
2) Script URL (on DD):
3) Describe problem:


I am using the above code in my page. Now everything is working fine. In the file pagination.php, the output when clicked on the link calls a few images, and the images are linked so it shows with this effect Lightbox image viewer 2.03 (http://dynamicdrive.com/dynamicindex4/lightbox2/index.htm). Somehow the images don't show up with the lightbox effect and instead it takes you to the images page itself. Can someone please tell me how can I achieve this. I would love to make this work together with dynamic content. here is the example page so yo get an idea http://www.desi-fun.com/acyn/Photo_Gallery/5.html

You notice that the images do show up with light box effect in the page itself and thats cuz those images are alreadie called in the page itself and are not dynamic ajax content called but as soon as you click on page [ 2 ], and you click on a image it doesn't work with lightbox effect. I do have the scripts needed for lightbox called within pagination.php and they work if you call the file by itself just like HERE (http://www.desi-fun.com/acyn/pagination.php?page_id=5&block_id=5&gal_id=5&per_page=4&page=2). but when called with dymnamic ajax content it doesn;t work. Any help would be very appreciated.

Please do help.


07-16-2007, 04:37 AM
An id of "5" is invalid. Id's need to start with letters, but most browsers will forgive this, and that isn't the real problem here. After you load an external page, you need to initialize its content to the lightbox script. See:


07-16-2007, 05:58 AM
got it working like a charm homie.

Thanks alot