Topic: Juicebox .xml file not found, except locally.

Hello everyone, I'm hoping to find a bit of help.

I'm still editing my website, www.cal500.com, in iWeb, but I publish everything to a local folder and upload to my server via FTP. My problem doesn't seem evident on my end until I try to view my website on other computers, although my laptop continues to see a working gallery (even after clearing the cache trying to replicate the problem).

I've checked the file paths and everything checks out fine. Even when I reload and rebuild and recheck everything, the result is the same. The snippet within the iweb builder also works fine.

Here is the embed code I am using, which you can see is the BaseURL method:

<html><head><title></title></head><body><!--START JUICEBOX EMBED-->
<script src="http://www.cal500.com/juiceboxhomepage/jbcore/juicebox.js"></script>
<script>
  new juicebox({
      containerId : 'juicebox-container',
      galleryWidth: "550",
      galleryHeight: "475",
      backgroundColor: "rgba(0,0,0,0)",
      baseUrl : 'http://www.cal500.com/juiceboxhomepage/',
  });
  </script>
<div id="juicebox-container"></div>
<!--END JUICEBOX EMBED--></body></html>

Perhaps there is something within my page that is conflicting with the code? Some direction would be greatly appreciated!

Best regards,

-Marc

Re: Juicebox .xml file not found, except locally.

I am having a similar issue but only in IE 10  windows.  works fine on my mac

Re: Juicebox .xml file not found, except locally.

scotstyle,

This is exactly correct. I do all of my work from my mac, as it is my preferred platform, but at the office we use all Windows XP and Windows 8 machines. I have tested on the office machines and all browsers, including clearing all caches, to no avail. I figured this would be a windows issue, but perhaps it may be the server? Or the ISP?

Re: Juicebox .xml file not found, except locally.

@marcrmiller

Your gallery displays and functions OK in IE10 on my PC (and also in Firefox 19.0.2, Chrome 25 and Safari 5.1.7).

Please note that as you have use the www.cal500.com subdomain in the URLs within your embedding code, your gallery will display only when you access your web site using the www.cal500.com subdomain (and not when going to the main cal500.com domain).
All gallery files must be on the same domain (or subdomain) as the web page containing the embedding code due to the JavaScript same origin policy.

One solution to this would be to use relative URLs (rather than absolute URLs) in your embedding code.

Re: Juicebox .xml file not found, except locally.

Steven,

Thanks for pointing out the 'www.' problem in which I was unaware of. As far as relative and absolute URLs are concerned, how can I modify the code where the absolute and relative URLs are included? Also, how do I locate and write the relative code - my google searches to figuring out the code seem a bit unclear and slightly complicated. Any advice, comments, or links?

Kind Regards,
-Marc

Re: Juicebox .xml file not found, except locally.

As far as relative and absolute URLs are concerned, how can I modify the code where the absolute and relative URLs are included?

Try the following embedding code (the leading slash in the URLs denotes the root directory):

<!--START JUICEBOX EMBED-->
<script src="/juiceboxhomepage/jbcore/juicebox.js"></script>
<script>
  new juicebox({
      containerId : 'juicebox-container',
      galleryWidth: "550",
      galleryHeight: "475",
      backgroundColor: "rgba(0,0,0,0)",
      baseUrl : '/juiceboxhomepage/',
  });
  </script>
<div id="juicebox-container"></div>
<!--END JUICEBOX EMBED-->

Re: Juicebox .xml file not found, except locally.

Thanks again, Steven.

I just wanted to update, in case anyone else may be able to benefit.

I decided that having the 'www.' prefix and the 'cal500.com' without the prefix was an absolute headache, so rather than modifying the code, I redirected 'cal500.com' to 'www.cal500.com' to keep the absolute URLs. Will there be any problem with this? I don't have any idea, but I think it may just simplify things in the long run.

Re: Juicebox .xml file not found, except locally.

There should be no problem in redirecting 'cal500.com' to 'www.cal500.com'.
The users will always end up browsing 'www.cal500.com' and that is where your absolute URLs point to.

9 (edited by honeyf 2014-05-12 20:19:38)

Re: Juicebox .xml file not found, except locally.

Thank you I have been having the config.xml not found, the www. was the culprit, solved it, thank you all

Update, I was wrong, it shows fine on my machine but not on other machines, help someone :(
The website is:
http://www.photography.co.tz/David_Rita.html