hi guys!

i used this lightbox from this url for my project.. http://www.huddletogether.com/projects/lightbox2/ Its working if i used it normally. But I'm trying to apply it to a search pop-up i did.

on the first launch, the div is empty. now after the search, only the div will refresh (a bit of basic ajax in there) and the result will appear. each row has a small button on the far right where when clicked, should activate the lightbox, but it doesn't work(it opens the image on a new page). But since it works on normal pages, it must have something to do with loading the javascript for the lightbox, or initializing. I tried asking for help on their site, but it has been a week, and i need this really soon.

how will i make this code work? please help..