Topic: Gallery XML Not Found - iPhone

I am testing a gallery embed on a WP page and it is working viewing from a desktop computer, but when trying to view on an iPhone I am getting "Gallery XML Not Found."

Any idea why?


To add to my puzzle, using the iFrame method instead of the embed code DOES cause the gallery to show up on an iPad but still nothing on an iPhone.

svManager version 1.6.7, build 100520 (I have put in a request for the most up to date upgrade)

Last edited by zerogravity (2012-01-17 09:10:42)

Re: Gallery XML Not Found - iPhone

The link you posted is on tomhillmannmediadesign.com but the URLs within your gallery's embedding code refer to www.tomhillmannmediadesign.com (www.tomhillmannmediadesign.com being a subdomain of tomhillmannmediadesign.com).
Please see this FAQ for details: http://simpleviewer.net/simpleviewer/su … trouble_11
Try changing your embedding code to the following, ie:

<script type="text/javascript" src="http://tomhillmannmediadesign.com/clients/dianalovell/svmanager/g1/svcore/js/simpleviewer.js"></script><br />
<script type="text/javascript">
var flashvars = {};
flashvars.baseURL = "http://tomhillmannmediadesign.com/clients/dianalovell/svmanager/g1/";
simpleviewer.ready(function () {
simpleviewer.load("sv-container", "600", "600", "transparent", true, flashvars);
});
</script>
Steven Speirs
SimpleViewer Support Team.

Re: Gallery XML Not Found - iPhone

Thanks! Both methods, embed, and iFrame now show up on the iPhone. And since the gallery will be on the client's domain, I also created a crossdomain file as indicated in the FAQ you referenced.

Re: Gallery XML Not Found - iPhone

I ran into another roadblock.

Using an iFrame to display the gallery works on the main site and displays on the iPhone www.tomhillmannmediadesign.com/staging
but a subfolder client site that is domain mapped won't display the iFrame gallery www.dianalovell.com/staging on the iPhone.

Re: Gallery XML Not Found - iPhone

Unfortunately, another user has discovered this phenomenon in this thread: http://www.simpleviewer.net/forum/viewt … p?id=14980
It would appear that 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.
I have notified the developers but, at present, I do not know the cause or have a solution.

Steven Speirs
SimpleViewer Support Team.

Re: Gallery XML Not Found - iPhone

I can't get the embed method to work now, not on the main domain, or the mapped domain. And I can't remember if I used the embed code from sv-Builder Pro, or the code you supplied in this thread (which was different that what sv-Builder Pro created.)

Here's what is output, can you show me how you would edit this?

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
simpleviewer.ready(function () {
simpleviewer.load("sv-container", "100%", "100%", "transparent", true);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->

Re: Gallery XML Not Found - iPhone

The code provided by svBuilder will work fine when all the gallery files (and folders) are in the same directory as the HTML page into which the embedding code is to be inserted.
The modifications I made will work fine when all the gallery files (and folders) are kept together in the gallery folder created by svBuilder and the HTML page into which the embedding code is to be inserted is not in the gallery folder.
If this is the case, then you need to:
(1) Change the path to the 'simpleviewer.js' file
(2) Initialize the flashvars variable and set a baseURL to point to the gallery folder
(3) Include the flashvars variable in the 'simpleviewer.load()' embedding code line
Please see here for details: http://simpleviewer.net/simpleviewer/su … l#external

Steven Speirs
SimpleViewer Support Team.

Re: Gallery XML Not Found - iPhone

Ok, that code works to get the gallery to appear on the computer browser, but now both the iPad and iPhone say "Gallery XML Not Found"
Testing page: http://www.dianalovell.com/staging
but it works on the originating domain http://www.tomhillmannmediadesign.com/staging on computer browser, iPad, and iPhone.  Are we a step closer in that we are getting, "Gallery XML Not Found." ? Or is this totally an iPhone shortcoming whether iFrame or embed is used to place a gallery from another domain on a page?

Re: Gallery XML Not Found - iPhone

The current problem with the Mobile Player gallery at http://www.dianalovell.com/staging is that the URLs within the embedding code refer to files on the tomhillmannmediadesign.com domain.
For the Mobile Player to function correctly, all files should be on the same domain as the page containing the embedding code.
Unfortunately, the easiest workaround (to use an <iframe>) does not currently work with Mobile Safari iOS 5.0.1 and I do not know why.

Steven Speirs
SimpleViewer Support Team.

Re: Gallery XML Not Found - iPhone

The testing page now has a Youtube video (right below the SV Gallery) in an iFrame. Below the Youtube video I added a static webpage in an iFrame. This was to test whether or not the iPhone will show content from another domain in an iFrame. The Youtube video and the static webpage which are in iFrames both show up on the iPhone, while the gallery is still not visible. http://www.dianalovell.com/staging So, would you say this is a bug with the SV coding as opposed to the iPhone's ability to show content from a different domain in an iFrame?

Re: Gallery XML Not Found - iPhone

So, would you say this is a bug with the SV coding as opposed to the iPhone's ability to show content from a different domain in an iFrame?

I believe so. I have also been able to successfully use an <iframe> to load content from a different domain in Mobile Safari on an iPod (but not a SimpleViewer gallery).
As I noted above, I have contacted the developers to notify them of this issue but, as yet, have no news on the situation.

Steven Speirs
SimpleViewer Support Team.