Reply – Re: Documents loaded through ajax, shadowbox not working
Your Name
Subject
Message
or Cancel
In Reply To
Re: Documents loaded through ajax, shadowbox not working
— by Super Gab Super Gab
I'm sorry  but I have a similar problem with my site.

I use Shadowbox/jQuery to display my images on this portfolio page and it works fine. I would like to load this page using an AJAX scripts, scroll down to the bottom of this page and click on photos, the page will reload and you will see that the Shadowbox doesn't work anymore.

I tried to use the LiveQuery jQuery plugin to solve this problem but my understanding of all this is not really good.

Using the following code, I'm able to get the alert message but not to make Shadowbox work.

        $('a[rel*=shadowbox]')  
        .livequery('click', function(event) {
                Shadowbox.setup();
                alert('Shadowbox test');
        });

I just don't know what to do or try next make this work.

The script I use to load the page is located here.

Many thanks for your time and help.