Topic: Pass variable to baseUrl [SOLVED]
I need a pointer to get me sorted on this please.
I am creating a query string to pass the gallery name to a php page which houses the juicebox gallery.
Wihin the php page I am extracting the url
<?php
// The value of the variable
$Url = "photo-archive/" . $_GET["album"];
echo $Url; // for testing
?>
I am now struggling on how to associate the $Url variable to baseUrl within the call for Juicebox?
<script language="JavaScript" type="text/javascript">
new juicebox({
baseUrl : *** how to define the variable ***,
containerId : "juicebox-container",
galleryWidth: "100%",
galleryHeight: "100%",
backgroundColor: "#222222",
showOpenButton: "false"
});
</script>
<div id="juicebox-container">
</div>
<!--END JUICEBOX EMBED--></div>