Topic: Juicebox gallery via Google search xml error

Hi,

I have created a website in iWeb for a friend. When the url is entered in the address field in Safari and the gallery navigated to, the gallery works as you'd expect. However if the site is accessed via a Google search the gallery throws up the 'config xml file not found' error. This happens both from a Google page and from the Google search box top right of Safari.

The URL is http://www.fabianbond.co.uk and the search term used in Google is 'Fabian Bond'.

Thanking you in advance!

Re: Juicebox gallery via Google search xml error

Your gallery is located at http://www.fabianbond.co.uk/ but the link from the Google search directs the user to http://fabianbond.co.uk/ (i.e. not the 'www' subdomain where the gallery is located).
In order for a Juicebox gallery to function correctly, all the files (including the HTML document containing the JavaScript embedding code) must be on the same domain or subdomain.
This is due to the JavaScript same-origin policy security restriction. Please see this web page for more information.
Try changing the URLs in your gallery's embedding code from absolute URLs using the 'www' subdomain to relative URLs.
For example, change:

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

... to:

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

Otherwise, you would need to either:

Re: Juicebox gallery via Google search xml error

Thank you for your quick response. I tried the relative URL method with no success. I also tried changing the site to http://fabianbond.co.uk (no www) but the galleries wouldn't load. Is iFrame now my only option?

Thanks.

Re: Juicebox gallery via Google search xml error

Using relative links within your gallery's embedding code should work.
After making changes to your gallery, you may need to clear your browser's cache before reloading the gallery.

Currently, entering 'www.fabianbond.co.uk' into a browser's address bar redirects the user to 'www.fabianbond.co.uk/FabianBond/FBHome.html'. If you can redirect to 'fabianbond.co.uk/FabianBond/FBHome.html' instead, this should also work.

Re: Juicebox gallery via Google search xml error

Managed to sort it out, thanks for your help Steven!