1 (edited by georg_m 2013-11-28 16:39:52)

Topic: [SOLVED] Juicebox Error: Config XML file not found.

i have the website www.georgmolterer.com as my main website. it's data hosted on a server.

i have the domain arch-foto.com as a second website. this domain is pointed to www.georgmolterer.com/architektur as its root folder. the hosting-company calls that VHOST.

if i type www.georgmolterer.com/architektur in my browser i get a working menu with gallery.
if i type arch-foto.com i see the menu, but the gallery is broken: Juicebox Error: Config XML file not found.

how can that be? it works depending on what's typed in the address bar?
all paths are specified absolutely as http://www.georgmolterer/architektur/...


the weird thing is, that it worked on arch-foto.com, when it was just forwarded as a frame, but now, that it is VHOST it works no more.
also the architecture link on the www.georgmolterer.com uses the files inside the architektur folder and works.

Re: [SOLVED] Juicebox Error: Config XML file not found.

All gallery files must be located on the same domain (or subdomain) as the HTML document containing the gallery's JavaScript embedding code due to the same-origin policy.

It is not possible to have paths in your gallery's embedding code with one domain but to then try to view the gallery using a URL with a different domain.

Try using paths in your gallery's embedding code which do not hard-code a domain name. (Use a leading slash to denote the root directory of whatever domain is typed into the browser's address bar).

<script type="text/javascript" src="/architektur/pages/architecture/jbcore/juicebox.js"></script>
baseURL: "/architektur/pages/architecture/",

Re: [SOLVED] Juicebox Error: Config XML file not found.

thanks.
there would have been no way of me finding that out.

it works with "/pages/..." as architektur is the root directory of arch-foto

Re: [SOLVED] Juicebox Error: Config XML file not found.

Brilliant, thanks, have been struggling with this for days.