Topic: Dynamic XML issue with 2.1.1
I hate to ask for help with stuff like this, but I'm stumped. I've searched the forums and it seems like people were having just the opposite issue that I am when they were on 2.1. I'm getting the "Cannot Parse Gallery XML" error.
Here's the site I'm working on:
http://sedetweiler.greenmartini.com/
You can see I'm embedding using the recommended code:
<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.galleryURL = "/xml.php?id=1568&skin=default";
//flashvars.galleryURL = "/gallery.xml";
var params = {};
params.wmode = "transparent";
jQuery(document).ready(function () {
SV.simpleviewer.load("sv-container", "960", "640", "", true, flashvars, params);
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->
Note the galleryURL line. If yo go to that address you can see the XML is valid. That php file includes the following, although I've tried it without the charset too:
header ("Content-type: text/xml; charset=UTF-8");
If I comment the dynamic galleryURL and uncomment the static one, it works perfectly. This is in the normal Flash version. I can also leave the dynamic galleryURL and load the HTML5 version and it loads fine. So it's specifically the combination of the dynamic galleryURL and the Flash version. This happens in both Firefox and IE.
Here are direct links to both of the XML files for comparison:
http://sedetweiler.greenmartini.com/xml … in=default
http://sedetweiler.greenmartini.com/gallery.xml
Once I get this resolved I'll be upgrading to Pro, since I definitely need some more of the customization options. I'd greatly appreciate any assistance on this. Also, to confirm... does simpleviewer load jQuery on its own? If so, does it first make sure it's not already loaded? I'm loading the latest from a CDN and I'd hate to have to load another 56k if it's not necessary.