Topic: gallery on ipad using php as galleryURL

Hi

I can't figure out whats wrong with my gallery on Ipad.

This link is working on my desktop but wont work on ipad ("no images specified in gallery xml").
      http://www.kudada.com/galleries/sv_213/index.html
The index.html contains the following code:

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="http://www.kudada.com/galleries/sv_213/web/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.baseURL = "http://www.kudada.com/galleries/sv_213/";
flashvars.galleryURL = "xml.php?album=Dana%26userid=guyandroi";
simpleviewer.ready(function () {
simpleviewer.load("sv-container", "100%", "100%", "222222", true, flashvars, null, null, false);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->

When I tried to change the PHP usage to XML it will work both on my ipad and desktop. Like in this link:
     http://www.kudada.com/galleries/sv_213/dana.html
dana.html contains this code:

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="http://www.kudada.com/galleries/sv_213/web/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.baseURL = "http://www.kudada.com/galleries/sv_213/";
flashvars.galleryURL = "dana.xml";
simpleviewer.ready(function () {
simpleviewer.load("sv-container", "100%", "100%", "222222", true, flashvars, null, null, false);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->

Any idea? (help please...)

Thanks!
Guy
Pro user

Re: gallery on ipad using php as galleryURL

Flashvar parameters should be URL-encoded. Try using this tool to encode your entire galleryURL string: http://meyerweb.com/eric/tools/dencoder/
Try the following in your embedding code:

flashvars.galleryURL="xml.php%3Falbum%3DDana%26userid%3Dguyandroi";
Steven Speirs
SimpleViewer Support Team.

Re: gallery on ipad using php as galleryURL

Did that and now the message on my ipad is: "Gallery XML not found"

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="http://www.kudada.com/galleries/sv_213/web/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.baseURL = "http://www.kudada.com/galleries/sv_213/";
flashvars.galleryURL="xml.php%3Falbum%3DDana%26userid%3Dguyandroi";
simpleviewer.ready(function () {
simpleviewer.load("sv-container", "100%", "100%", "222222", true, flashvars, null, null, false);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->

I need more ideas. please.

Thanks
Guy

Re: gallery on ipad using php as galleryURL

Have you set a content type in the PHP file which generates the XML code?

<?php
header ("Content-Type:text/xml");
?>

Try the above code in conjunction with the following in your embedding code:

flashvars.galleryURL = "xml.php?album=Dana&userid=guyandroi";
Steven Speirs
SimpleViewer Support Team.