Topic: Gallery XML Not Found on iPhone

Dear Support team,

Good day.

I have embedded the code in my Wordpress [http://anthony.pimodi.com/random-photos-gunung-ledang/]

Simple Viewer is ok on Chrome, FF and IE9 but not on IE8 and iPhone (iOS5.0.1).

The Error show is "Gallery XML Not Found"

Below is the embedded code
==============================
<!--START SIMPLEVIEWER EMBED --><br />
<script type="text/javascript" src="http://pimodi.com/svcore/js/simpleviewer.js"></script><script type="text/javascript">var flashvars = {};flashvars.galleryURL = "http://pimodi.com/xml/20120114-GunungLedang.xml";simpleviewer.ready(function () {simpleviewer.load("sv-container", "100%", "100%", "222222", true, flashvars);});</script>
<div id="sv-container"></div>
<p><!--END SIMPLEVIEWER EMBED -->
===============================
XML path located at http://pimodi.com/xml/20120114-GunungLedang.xml

Please let me know which part is wrong.

Thank you smile

Re: Gallery XML Not Found on iPhone

Your gallery is on anthony.pimodi.com but the URLs within your embedding code refer to pimodi.com (anthony.pimodi.com being a subdomain of pimodi.com).
Make sure that everything is on the same domain or if you use redirects, try using relative paths for the URLs within the embedding code.
Please see this FAQ for details: http://simpleviewer.net/simpleviewer/su … trouble_11

Steven Speirs
SimpleViewer Support Team.

Re: Gallery XML Not Found on iPhone

Dear Steven,

Good day and thanks for help.

I have change the embedded code as below:
=======================================
<!--START SIMPLEVIEWER EMBED --><script type="text/javascript" src="http://pimodi.com/svcore/js/simpleviewer.js"></script><script type="text/javascript">var flashvars = {};flashvars.galleryURL = "http://anthony.pimodi.com/xml/20120114-GunungLedang.xml";simpleviewer.ready(function () {simpleviewer.load("sv-container", "950", "730", "222222", true, flashvars);});</script>
<div id="sv-container"></div>
<p><!--END SIMPLEVIEWER EMBED -->
=======================================

Now I can view the gallery on iPhone and IE8. But Chrome, IE9 and FF show me "Gallery XML Not Found" error.

May need to your help.

Thank you smile

Re: Gallery XML Not Found on iPhone

You have changed the galleryURL but not the path to the 'simpleviewer.js' file, ie. the following line:

<script type="text/javascript" src="http://pimodi.com/svcore/js/simpleviewer.js"></script>
Steven Speirs
SimpleViewer Support Team.

Re: Gallery XML Not Found on iPhone

Dear Steven,

Good day and thanks for help.

Problem solved after change to anthony.pimodi.com for simpleviewer.js.

May I know that any work around to point the xml file and simpleviewer.js to pimodi.com so that I can central manage all all xml and no need to duplicate svcore directory to all blog site?

Currently have three blog sites under pimodi.com which are alex.pimodi.com, anthony.pimodi.com and blog.pimodi.com.


Thank you smile

Re: Gallery XML Not Found on iPhone

You could try using a crossdomain.xml file (as described in this FAQ) but for Mobile Player galleries to function correctly, you may need to duplicate the 'svcore' folder on each subdomain.

Steven Speirs
SimpleViewer Support Team.

Re: Gallery XML Not Found on iPhone

Dear Steven,

I understood.

Thanks for your reply.

Regards,
Alex Lim

Re: Gallery XML Not Found on iPhone

I am using SV Pro 2.2.0. I am self-hosting the gallery files and calling them from a Weebly website. All is well in Mac browsers. However, I get the dreaded "Gallery XML Not Found" message on iPhone using multiple browsers, both in the full site and mobile site. Here's the embed code I'm using:

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="http://collablearning.org/SimpleViewer/SAS%202011/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.baseURL = "http://collablearning.org/SimpleViewer/SAS%202011/";
flashvars.galleryURL = "http://collablearning.org/SimpleViewer/SAS%202011/gallery.xml";
simpleviewer.ready(function () {
simpleviewer.load("sv-container", "100%", "700px", "transparent", true, flashvars);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->

The URL to the gallery is http://chsaeroscience.weebly.com/image-gallery.html.

I've searched the forum and tried various things but nothing has helped.

Thank you for your help.
Bill

Last edited by bmontana (2012-02-01 19:59:11)

Re: Gallery XML Not Found on iPhone

@bmontana

For the Mobile Player to function correctly, all files should be on the same domain.
Your gallery's embedding code is on http://chsaeroscience.weebly.com/ but the references within the embedding code to the 'simpleviewer'js' file and to your gallery folder (via the baseURL) are on http://collablearning.org
A workaround would be to embed your gallery in an <iframe> (see #2 here) rather than by using a baseURL.
However, there is currently a problem where, in Mobile Safari iOS 5.0.1, a SimpleViewer gallery will not be displayed in an <iframe> if the gallery is hosted on a different domain to the HTML page containing the <iframe> code.
The developers are currently looking into this.
Therefore, the only real solution currently is to host all gallery files on the same domain as your HTML document which contains the embedding code.

Steven Speirs
SimpleViewer Support Team.

Re: Gallery XML Not Found on iPhone

Steven Speirs wrote:

@bmontana

For the Mobile Player to function correctly, all files should be on the same domain.

Therefore, the only real solution currently is to host all gallery files on the same domain as your HTML document which contains the embedding code.

...which is not possible with Weebly as far as I know.

Thank you,
Bill