1 (edited by sam 2012-10-30 02:24:51)

Topic: Config XML file not found

Hey -

I'm trying to embed a gallery into my iWeb page, but I'm getting the "Config XML file not found" error. I've tried everything, and still can't get it to work.

The folder I'm using is called "juicebox" and I uploaded it to the server.

This is the page I'm trying to embed it on;

http://woodennickels.ca/2_Photos.html

This is the embed code I'm using.

<!--START JUICEBOX EMBED-->
<script src="http://www.woodennickels.ca/juicebox/jbcore/juicebox.js"></script>
<script>
  new juicebox({
      containerId : 'juicebox-container',
      baseUrl : 'http://www.woodennickels.ca/juicebox/',
  });
  </script>
<div id="juicebox-container"></div>
<!--END JUICEBOX EMBED-->

Any suggestions?

Thanks,
Sam

Re: Config XML file not found

If you wish to access your web page using the 'woodennickels.ca' domain, then use the same domain in the absolute URLs in your embedding code (or use relative URLs instead):

<!--START JUICEBOX EMBED-->
<script src="http://woodennickels.ca/juicebox/jbcore/juicebox.js"></script>
<script>
  new juicebox({
      containerId : 'juicebox-container',
      baseUrl : 'http://woodennickels.ca/juicebox/',
  });
  </script>
<div id="juicebox-container"></div>
<!--END JUICEBOX EMBED-->

'www.woodennickels.ca' is a subdomain of 'woodennickels.ca' and the gallery files must be on the same domain as the HTML page containing the embedding code due to the JavaScript same-origin policy. Please see this web page for details.

Re: Config XML file not found

Great, thanks! That worked, and now it's embedded properly, with the title coming up, and the number of photos in the album, but none of the photos are showing up. I tried recreating the album, but it didn't work. Any suggestions?

Sam

Re: Config XML file not found

Your gallery's XML file has entries such as imageURL="images/33350005.jpg".
These relative URLs are relative to the baseUrl you use http://woodennickels.ca/juicebox/ so your first image should be located here http://woodennickels.ca/juicebox/images/33350005.jpg but going directly to this location in a browser results in an error 404 (file not found).
If using a baseUrl to point to a gallery folder, then you can just upload the entire gallery folder (including the 'images' subfolder) without moving or renaming any files within it.