Topic: Can I pass a different xml filename and load different image sets?

Hello and thank you for having me here.
I'm using Simpleviewer v2 on my website and I would like to ask if it is possible to pass a different .xml filename to the js function in order to load a different image set each time.

For example, if my 1st set of images is Gallery1 then I would like to load gallery1.xml to show only those images.
At the moment I'm generating various xml files with PHP (gallery1.xml, gallery2.xml etc) and I'm trying to call the function with the filename but without success.

Re: Can I pass a different xml filename and load different image sets?

You can point SimpleViewer towards a specific XML file by using the galleryURL option.
Please see the FlashVar Options section of the 'SimpleViewer Standard Config Options' page for details.
Your embedding code would look something like this:

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.galleryURL = "gallery123.xml";
simpleviewer.ready(function () {
simpleviewer.load("sv-container", "100%", "100%", "222222", true, flashvars);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->
Steven Speirs
SimpleViewer Support Team.

Re: Can I pass a different xml filename and load different image sets?

Wow, this HAS to be the quickest support I've seen so far!
Many thanks, I'll try it out and let you know.