About this variable 'galleryURL', I found that there was a difference in behavior between the flash version and mobile version.
I don't know if this is a bug, but I will indicate this:
when the HTML page which must be displayed in the photo gallery is dynamic, the URL to the XML file seems wrong with the mobile version.
By exemple, I have de dynamic HTML page available with the following URL:
http://x.y.z.t/projets/www/photos/simplegallery/index.php?action=sv_album&d=/Documents/Emmanuel/tmp/
The content of this page included this:
<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="../simpleviewer_pro/web/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars = {};
//flashvars.galleryURL = '<?php echo $simple_gallery->getGalleryFileUrl() ?>';
flashvars.galleryURL = 'gallery.xml';
var params = {};
//params.wmode = "transparent";
var attributes = {};
attributes.id = "svInstance";
simpleviewer.ready(function () {
simpleviewer.load("sv-container", "100%", "100%", "222222", true, flashvars, params, attributes);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->
With the flash version (pro version 2.3.0), the logs of my web server are:
192.168.1.4 - - [22/Mar/2012:18:20:44 +0100] "GET /projets/www/photos/simplegallery/index.php?action=sv_album&d=/Documents/Emmanuel/tmp/ HTTP/1.1" 200 1193 4723
192.168.1.4 - - [22/Mar/2012:18:20:44 +0100] "GET /projets/www/photos/simplegallery/style/common.css HTTP/1.1" 200 875 352
192.168.1.4 - - [22/Mar/2012:18:20:44 +0100] "GET /projets/www/photos/simpleviewer_pro/web/svcore/js/simpleviewer.js HTTP/1.1" 200 115910 940
192.168.1.4 - - [22/Mar/2012:18:20:46 +0100] "GET /projets/www/photos/simpleviewer_pro/web/svcore/js/swfobject.js HTTP/1.1" 200 10220 392
192.168.1.4 - - [22/Mar/2012:18:20:46 +0100] "GET /projets/www/photos/simpleviewer_pro/web/svcore/css/simpleviewer.css HTTP/1.1" 200 7221 454
192.168.1.4 - - [22/Mar/2012:18:20:46 +0100] "GET /projets/www/photos/simpleviewer_pro/web/svcore/swf/simpleviewer_icc.swf HTTP/1.1" 200 79551 31593
192.168.1.4 - - [22/Mar/2012:18:20:48 +0100] "GET /projets/www/photos/simplegallery/gallery.xml HTTP/1.1" 200 4691 365
192.168.1.4 - - [22/Mar/2012:18:20:49 +0100] "GET /projets/www/photos/simplegallery/index.php?action=mini&f=/Documents/Emmanuel/tmp/020532019812_web.jpg&c=1&s=70 HTTP/1.1" 200 6631 14088
...
it's OK, the XML file has been downloaded, and photos are also downloaded
But with the mobile version (pro version 2.3.0), the logs are:
192.168.5.2 - - [22/Mar/2012:18:26:26 +0100] "GET /projets/www/photos/simplegallery/index.php?action=sv_album&d=/Documents/Emmanuel/tmp/ HTTP/1.1" 200 1193 4913
192.168.5.2 - - [22/Mar/2012:18:26:27 +0100] "GET /projets/www/photos/simplegallery/style/common.css HTTP/1.1" 200 875 540
192.168.5.2 - - [22/Mar/2012:18:26:28 +0100] "GET /projets/www/photos/simpleviewer_pro/web/svcore/js/simpleviewer.js HTTP/1.1" 200 115910 5683726
192.168.5.2 - - [22/Mar/2012:18:26:35 +0100] "GET /projets/www/photos/simpleviewer_pro/web/svcore/js/swfobject.js HTTP/1.1" 200 10220 627
192.168.5.2 - - [22/Mar/2012:18:26:37 +0100] "GET /projets/www/photos/simpleviewer_pro/web/svcore/css/simpleviewer.css HTTP/1.1" 200 7221 677
192.168.5.2 - - [22/Mar/2012:18:26:38 +0100] "GET /projets/www/photos/simplegallery/index.php?action=sv_album&d=/Documents/Emmanuel/tmp/gallery.xml HTTP/1.1" 200 1204 4374
The URL of the XML file is not at all the same (eg. last line): it is built by concatenating the value of the galleryURL variable with the URL of the HTML file.
The XML file can not be downloaded.
In case the XML file is dynamically created on the fly, the XML file URL may look like this:
192.168.5.1 - - [22/Mar/2012:18:20:01 +0100] "GET /projets/www/photos/simplegallery/index.php?action=sv_album&d=/Documents/Emmanuel/tmp/index.php%3Faction%3Dsv_gallery%26d%3D%2FDocuments%2FEmmanuel%2Ftmp%2F HTTP/1.1" 200 1287 4804
Regards,
Emmanuel