Thank you for your help :-)
your sample helped me to resolve my problem.

the code is ok
is see the juicebox frame
but when i click on the link the juicebox is displayed with the first config.xml file and not the config.xml of the link

the page is not refreshed i have an ajax part and i'm asking if i can change de path of the config.xml file without refreshing the page

Hi i have a website made in ajax

with this script

<script type="text/javascript">
    function loadjuicebox(path) {
        new juicebox({
            containerId : 'juicebox-container',
            galleryWidth: "795px",
            galleryHeight: "476px",
            backgroundColor: 'rgba(0, 0, 0, 0.0)',
            xbackgroundColor:'fff',
            configUrl: path
        });
    }
</script>

<body onload="loadjuicebox('images/1/config.xml');">

<div id="juicebox-container"></div>
<a href="#" onclick="loadjuicebox('images/2/config.xml');">link</a>
</body>

how can i do to dynamicly change the path of the juicebox

because

doens't work

can you help me please.