Topic: iPad issues

Hello,
I recent added three galleries to one page using BaseURl option. Everything is working correctly on desktop browsers but on the iPhone and iPad each gallery says "Gallery XML Not Found"

test site here: http://www.majesticwebcreations.com/sb/work.html

Thanks!

Re: iPad issues

All three galleries display OK on my iPod Touch iOS 5.1.
If you have recently made any changes to your web page, try clearing your browser's cache before reloading the gallery in order to see the changes made.

Steven Speirs
SimpleViewer Support Team.

Re: iPad issues

My iPhone works fine. It's the iPad that isn't working.

I have cleared my data and cookies from the Safari browser settings and that didn't work. All three galleries show "Gallery XML Not Found"

iPhone, iPod Touch, Android seem to work fine. It is only the iPad that is having issues. I haven't changed the code at all from what SimpleViewer provides. There is definitely an issue somewhere within the iPad elements of the application.

Know anything about this?

Re: iPad issues

Unfortunately, I do not have an iPad on which to test.

However, there are a couple of things you might like to try.

I notice that the embedding code for each gallery is all one a single line with no carriage return/line feeds.
Try putting each JavaScript instruction on its own line, rather than all being strung together on the same line.
eg. change:

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="http://www.majesticwebcreations.com/sb/logos/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars1 = {};
flashvars1.baseURL = "http://www.majesticwebcreations.com/sb/logos/";
simpleviewer.ready(function () {
simpleviewer.load("sv-container1", "700", "400", "transparent", true, flashvars1);
});
</script>
<div id="sv-container1"></div>
<!-- END SIMPLEVIEWER EMBED -->

... to:

<!--START SIMPLEVIEWER EMBED.-->

<script type="text/javascript" src="http://www.majesticwebcreations.com/sb/logos/svcore/js/simpleviewer.js"></script>

<script type="text/javascript">

var flashvars1 = {};

flashvars1.baseURL = "http://www.majesticwebcreations.com/sb/logos/";

simpleviewer.ready(function () {

simpleviewer.load("sv-container1", "700", "400", "transparent", true, flashvars1);

});


Also, I notice that your galleries use SimpleViewer-Pro v2.1.3.
Try upgrading your galleries to the latest version (v2.3.0) as several bugs have been fixed since then.
As a Pro v2.x user, you can download the latest version using the download link from your purchase email.
Please see here for details: http://www.simpleviewer.net/simpleviewe … grade.html
You can then upgrade your galleries by replacing the 'svcore' folders in each gallery with the 'svcore' folder from the SimpleViewer-Pro download package ('simpleviewer_pre_230/web/svcore/').

Steven Speirs
SimpleViewer Support Team.

Re: iPad issues

Thank for your help.

BUT, I tried both your suggestions and they didn't work.

Re: iPad issues

hi,

I just checked the URL: http://www.majesticwebcreations.com/sb/work.html

It seems like you are using custom embed code that loads the SWF directly. This will cause the gallery to break on iOS. Please try using the embed code that is generated by svBuilder-Pro. Or check here for more detailed instructions: http://www.simpleviewer.net/simpleviewe … html#embed

Felix Turner
SimpleViewer Support Team.

Re: iPad issues

The code I'm using was given to me by a higher up on these forums. They said in order to display multiple galleries on the same page I would need to use the flashvars function and each one be labeled separately.

I will try the new code that sv-builder pro exports instead. I didn't know there was a difference.

But my big question, why does the iPhone and iPod touch read it correctly but iPad doesn't?

Re: iPad issues

I'm guessing you are currently working on the page as the code has changed since I last looked at it.

Try getting one gallery to work first, then add your other galleries. Please check here for instructions.

why does the iPhone and iPod touch read it correctly but iPad doesn't?

If it works on the iPhone it will work on the iPad and vice-versa.

Felix Turner
SimpleViewer Support Team.

Re: iPad issues

No, I haven't touched a thing. I'm away from the computer.

It's always worked on the iPhone but never the iPad. That's what's confusing me.

Re: iPad issues

Are you absolutely sure that the cache has successfully been cleared in Mobile Safari on your iPad?
(Settings -> Safari -> Clear Cookies and Data)
As Felix says, if your galleries display OK on an iPhone, then they should display OK on an iPad also.
Your galleries display fine on Mobile Safari iOS5.1 on my iPod Touch and also in IE9, Firefox 11, Chrome 17 and Safari 5.1.4 with Adobe Flash Player disabled on my computer.
Are you able to view this sample gallery on your iPad?

Steven Speirs
SimpleViewer Support Team.

Re: iPad issues

The issue maybe that you are loading the URL without the 'www' on the iPad.

http://www.majesticwebcreations.com/sb/work.html - works on the iPad/iPhone.

http://majesticwebcreations.com/sb/work.html - doesn't work on the iPad/iPhone.

This is because the 'www' URL is considered a different subdomain than the non-www version. SimpleViewer mobile throws a security error if you try to load XML from a different subdomain than the embedding page.

To get it to work on both subdomains, try using relative paths instead of absolute paths in the embed code.

Felix Turner
SimpleViewer Support Team.

Re: iPad issues

seems to be working fine and I haven't made any changes. I don't know what the issue was. Although I will keep these ideas for any future problems I may come across. Thanks for the great service on these forums!

Re: iPad issues

Well, back with the same issue again.

Everything was working fine. I had the galleries working cross browser as well as iPhone and iPad were all working fine on my test server.

Then all I did was drag and drop the entire website folder to a new server, changed the paths for the galleries and again, desktops working fine but iPad and iPhone are not working anymore and show the "gallery XML not found"

I have cleared the cache and data from both mobile safaris and refreshed the pages with no luck.

I really don't understand what the issue is.

please take a look at the files on their new server: http://www.sheilaburnscreative.com/Roch … esign.html

Thanks!

Re: iPad issues

If you visit http://sheilaburnscreative.com/Rochester-Marketing-Design.html, your galleries will not be displayed on mobile devices.
However, if you visit http://www.sheilaburnscreative.com/Rochester-Marketing-Design.html (note the use of the 'www' subdomain), your galleries will be displayed (as you use the 'www' subdomain in the paths to the files within the embedding code).
As Felix suggests, use relative paths within your embedding code. Also, your embedding code is, once again, a single line of code with no line feeds. Put each JavaScript instruction on its own line.
For example, the embedding code for your first gallery is currently:

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="http://www.sheilaburnscreative.com/logos/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars1 = {};
flashvars1.baseURL = "http://www.sheilaburnscreative.com/logos/";
simpleviewer.ready(function () {
simpleviewer.load("sv-container1", "700", "400", "transparent", true, flashvars1);
});
</script>
<div id="sv-container1"></div>
<!-- END SIMPLEVIEWER EMBED -->

Change it to the following:

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="logos/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
    var flashvars1 = {};
    flashvars1.baseURL = "logos/";
    simpleviewer.ready(function () {
        simpleviewer.load("sv-container1", "700", "400", "transparent", true, flashvars1);
    });
</script>
<div id="sv-container1"></div>
<!-- END SIMPLEVIEWER EMBED -->
Steven Speirs
SimpleViewer Support Team.

Re: iPad issues

Thanks for the fast reply!

I understand what you're saying about putting each Java Script on a separate line, but when I did that last time it didn't help at all.

Now, the subdomain and WWW issue. I now know exactly what you're talking about. BUT, is there a way to have both work? http://www.sheilaburnscreative.com and http://sheilaburnscreative.com

I am not quite understanding you about the "relative" paths part though. Could you please explain in more detail?

Again, Thanks for the great help

Re: iPad issues

BUT, is there a way to have both work?

Yes. Use relative paths rather than absolute paths (as you currently do).
In a web page a relative link is essentially the latter part of a URL, relative to the page itself.
For example, if you have a web page hosted at http://www.example.com/index.html and within that page, you have a relative link such as <a href="gallery/page.html">, then the browser will link to http://www.example.com/gallery/page.html.
The browser will use the current directory (the directory in which the page containing the relative link is in) as a base URL and will add the relative link to it to form the complete URL.

Therefore, if you use relative links within your embedding code, it will be tagged onto the end of http://sheilaburnscreative.com/ (if that is what the user has typed into the address bar) or http://www.sheilaburnscreative.com/ (if that is used instead).

Change the code to my example above and it should work fine for both scenarios.

Steven Speirs
SimpleViewer Support Team.

Re: iPad issues

Steven Speirs wrote:

BUT, is there a way to have both work?

Yes. Use relative paths rather than absolute paths (as you currently do).
In a web page a relative link is essentially the latter part of a URL, relative to the page itself.
For example, if you have a web page hosted at http://www.example.com/index.html and within that page, you have a relative link such as <a href="gallery/page.html">, then the browser will link to http://www.example.com/gallery/page.html.
The browser will use the current directory (the directory in which the page containing the relative link is in) as a base URL and will add the relative link to it to form the complete URL.

Therefore, if you use relative links within your embedding code, it will be tagged onto the end of http://sheilaburnscreative.com/ (if that is what the user has typed into the address bar) or http://www.sheilaburnscreative.com/ (if that is used instead).

Change the code to my example above and it should work fine for both scenarios.

Works perfect! Thanks so much for all your help smile