Topic: Question about dynamicly seting config.xml in juicebox on ajax website
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.