Topic: 'gallery xml not found' (non-flash code)

hello,
I'm using the pro 2.3.1 version and I can't get the gallery to open on my webpage.
this is the code I inserted :

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="http://www.ongidesigns.com/450c/gallery-gr/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
simpleviewer.ready(function (){
simpleviewer.load("sv-container", "100%", "100%", "transparent", false);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->

but it does not work.
I have used the flashvars version many times, which works fine, but I don't want the flash anymore since it does not show up on apple products.

Does anyone know why this is not working for me?
I'm getting 'gallery xml not found' but i know that the path is correct.

any help would be appreciated.
Thanks

Re: 'gallery xml not found' (non-flash code)

Your gallery displays OK if I visit http://www.ongidesigns.com/450c/gallery-gr/

Perhaps the page that you are embedding your gallery into is not in your 'gallery-gr' directory.
If this is the case, then you should use a baseURL to point SimpleViewer towards your gallery folder.
Try using the following code.

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="http://www.ongidesigns.com/450c/gallery-gr/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars={};
flashvars.baseURL="http://www.ongidesigns.com/450c/gallery-gr/";
simpleviewer.ready(function () {
simpleviewer.load("sv-container", "100%", "100%", "transparent", false, flashvars);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->

The baseURL method of embedding is documented here.

If you continue to experience difficulties, please post the URL of the web page into which you are trying to embed your gallery so that I can take a look and help further.

Steven Speirs
SimpleViewer Support Team.

Re: 'gallery xml not found' (non-flash code)

Hi Steven,
Thanks for your response!
You're right, the page I am embedding is not in the directory. It's in another site altogether.

I see that you're using the code with flashvars. I don't want to use flash which is basically the problem.
With flashvars, I can see the galleries just fine on a regular pc.
It's when i use the non-flash code that i can't see the gallery, probably because i don't have a link to the folder.

How can I add the BASEURL link to the non flash code?
thanks so much for your help!

Re: 'gallery xml not found' (non-flash code)

The name of the variable 'flashvars' is a little misleading.
The JavaScript embedding code above actually has nothing to do with Adobe Flash and does not rely on or use Adobe FLash Player.
As long as the useFlash Embed Code Parameter is set to 'false', your gallery will be displayed by the Mobile Player on all devices and in all browsers.
The 'flashvars' variable is used to pass variables to the SWF file but it is also used for the SimpleViewer configuration options found here.
Just use the code above and your gallery should display fine (using the Mobile Player). You can change the name of the 'flashvars' variable to anything you like if you wish.

Steven Speirs
SimpleViewer Support Team.

Re: 'gallery xml not found' (non-flash code)

Thanks again Steven.

I added the code with the flashvars and unfortunately I still get the "gallery XML not found".
I also put in another flash gallery on the same page that I know works on another page of the site and that's not working here either!

Here's a link to the page where I want to display the non flash gallery:

http://imirtec.com/pages/test-page

what am i doing wrong?


the flash galleries are working fine here and in other locations on the site:
http://imirtec.com/pages/jupiter-gallery

what to do?

Re: 'gallery xml not found' (non-flash code)

ok, i'm getting somewhere...
when the setting is set to "true" the gallery shows without problem.
see here:
http://450c.myshopify.com/products/vesuvio-gr
(pass twowmu)

when the setting is set to "false", it displays "gallery xml not found"

there must be a problem in the reading of the non-flash coding.

your thoughts?

thanks!

Re: 'gallery xml not found' (non-flash code)

The Mobile Player gallery on the 450c.myshopify.com domain will not display because you use the following lines in its embedding code.

<script type="text/javascript" src="http://www.ongidesigns.com/450c/gallery-gr/svcore/js/simpleviewer.js"></script>
flashvars.baseURL="http://www.ongidesigns.com/450c/gallery-gr/";

Note the use of the www.ongidesigns.com domain.
All gallery files must be on the same domain/subdomain as the HTML page containing the JavaScript embedding code due to the same-origin policy. Please see this web page for more details.
If you are unable to host your gallery files on the same domain/subdomain as the HTML page containing the JavaScript embedding code, you can host your gallery on Dropbox and load your gallery in an iframe following the 'Embedding in a Web Template Site' instructions here.
Please note that, when loading the Mobile Player in an iframe, the 'Fullscreen' and 'Open Image' buttons are disabled.

Steven Speirs
SimpleViewer Support Team.

Re: 'gallery xml not found' (non-flash code)

Hi Steven,
Thanks so much for your time on this matter.
So if I understand correctly -

If the gallery is a flash gallery, the files can be located on a different site. This works fine for me with SV on this site:
www.imirtec.com

If the gallery is for mobile (non-flash), then the files must be located in the same root folder of the site.

Since I do not have the option of hosting the page with the embedding code and the gallery folder in the same root folder, I should use dropbox and call it through an iframe.

I added the gallery folder to my dropbox and now it's showing up on both the pc and the mobile device as you had said.
Now, the problem is that I don't see the main image when the page loads - only the thumbs, both in the PC and in the mobile device. Once I click on one of the thumbs, I get a main image, but I would like the image to show right on page load.

Do you know why that happens?
Thanks again!

Re: 'gallery xml not found' (non-flash code)

If the gallery is for mobile (non-flash), then the files must be located in the same root folder of the site.

For the Mobile Player (the HTML version of the gallery), all gallery files must be on the same domain or subdomain as the HTML page containing the JavaScript embedding code (though not necessarily in the root directory).

Now, the problem is that I don't see the main image when the page loads - only the thumbs, both in the PC and in the mobile device.

Please see these FAQs:
When I view my gallery I see a grid of thumbnails, not the layout I specified. Why?
The mobile player layout does not match the Flash player layout. Why not?

If you are seeing the grid of thumbnails in your desktop browser then either:
(1) You do not have Adobe Flash Player installed and enabled in your browser. You can check by visiting this web page.
... or:
(2) You have set the useFlash Embed Code Parameter in your gallery's embedding code to 'false' which will force SimpleViewer to display the gallery using the Mobile Player on all devices and in all browsers regardless of whether or not Adobe Flash Player is available.

I would like the image to show right on page load.

If you want the Mobile Player to initially skip the thumbnail page and display the first image in the gallery, set firstImageIndex="0" in your gallery's XML file. (The indexing starts at zero for the first image in the gallery.)
Alternatively, you can completely disable the thumbnails page and thumbnail button in the Mobile Player by setting mobileShowThumbs="FALSE" (in svBuilder-Pro's 'Customize -> Mobile' section).
The Mobile Player Options can be found here.

Steven Speirs
SimpleViewer Support Team.

Re: 'gallery xml not found' (non-flash code)

Thanks so much for your help Steven! You're saving me here.

It's looking so much better now. I'm using the dropbox and I defined the parameters that you suggested and now I can see the gallery both on pc and mobile!

One last small question:
Is there anyway to display the thumbnails beneath the main picture instead of separately on mobile or pc?

Re: 'gallery xml not found' (non-flash code)

Is there anyway to display the thumbnails beneath the main picture instead of separately on mobile or pc?

This is possible in the Flash Player by setting thumbPosition="BOTTOM" (and possibly also something like thumbColumns="10" and thumbRows="1" if you want a single row of thumbnails beneath the main image).
These configuration options can be found in svBuilder-Pro's 'Customize -> Standard' section.

It is not possible to display the thumbnails and the main image on the same page in the Mobile Player.

Steven Speirs
SimpleViewer Support Team.

Re: 'gallery xml not found' (non-flash code)

I had already defined the thumbnail position in the builder, but when I use the iframe the thumbs don't show up in the PC and in mobile.
If I use the following code, the thumbs do appear:

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="http://www.ongidesigns.com/450c/gallery-gr/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars={};
flashvars.baseURL="http://www.ongidesigns.com/450c/gallery-gr/";
simpleviewer.ready(function () {
simpleviewer.load("sv-container", "100%", "100%", "transparent", true, flashvars);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->

Is there any way to show them in the iframe with dropbox?
(this is the page where they don't appear:
http://450c.myshopify.com/products/vesuvio-gr)

Re: 'gallery xml not found' (non-flash code)

The URL you provided links to a password-protected page so I cannot view the source of the page and determine the problem.

the thumbs don't show up in the PC and in mobile

If you do not see thumbnails in your desktop browser gallery, please check the following:

  • Make sure that the 'src' attribute of your iframe points towards the 'index.html' page of the correct gallery.

  • Make sure that the gallery does not set the useFlash Embed Code Parameter to 'false' which will force SimpleViewer to display the gallery using the Mobile Player (which does not display the thumbnails and main image on the same page).

  • Make sure that your browser has Adobe Flash Player installed and enabled, otherwise the gallery will be displayed by the Mobile Player.

If you do not see thumbnails in your mobile browser gallery, this is likely due to having set either mobileShowThumbs="FALSE" or firstImageIndex="0".

Is there any way to show them in the iframe with dropbox?

Thumbnails will display in a Flash Player gallery whether the gallery is embedded directly in the web page or loaded into an iframe.

Steven Speirs
SimpleViewer Support Team.

Re: 'gallery xml not found' (non-flash code)

Thanks for your help Steven,
I had to step away for a little while but I still have some issues with the thumbs display.

I want to be able to see the thumbs below the main image on the PC (I understand that this is not possible on mobile) and I had configured the position of the thumbs in the builder and in the xml file.

I pointed the gallery to the correct index.html
I set the useFlash=false
I have the current flash player installed and enabled.

How can I see the gallery on PC with the thumbs beneath the main image and still see the gallery on mobile? I do not want to sacrifice the thumbs on the PC.

This is a link to the location of the gallery:
http://450c.myshopify.com/products/vesuvio-gr
pass:twowmu

Thanks!

Re: 'gallery xml not found' (non-flash code)

I want to be able to see the thumbs below the main image on the PC

I set the useFlash=false

Set useFlash to 'true'.

Setting useFlash to 'false' will force SimpleViewer to display the gallery using the Mobile Player (which does not display the thumbnails and images together on the same page) on all devices and in all browsers, regardless of whether or not Adobe Flash Player is available in the user's browser.

When useFlash is set to to 'true', SimpleViewer will display the gallery using the Flash Player if Adobe Flash Player is available in the user's browser and will only use the Mobile Player on mobile devices and in browsers which do not have Adobe Flash Player installed and activated.

Steven Speirs
SimpleViewer Support Team.