Topic: Simpleviewer first photo won't load

Dear people,

Ive bin mucking around with simpleviewer-pro (which is a great product offcourse) but something i still cant figure out is that it wont load the first photo given by the xml file. Strange thing is that it just works fine within svBuilder and if you hit the box it'll work too sad

Have a look here to see what i mean: reggesign.nl/portfolio and reggesign.nl/buitenreclame

This is my embeded code:

        
<script type="text/javascript" src="http://www.reggesign.nl/assets/snippets/viewer/swfobject.js"></script>
 <script type="text/javascript">
            var flashvars = {};
            flashvars.galleryURL = "http://www.reggesign.nl/assets/snippets/viewer/gallery.xml";
            var params = {};            
            params.allowfullscreen = true;
            params.allowscriptaccess = "always";
            params.bgcolor = "111111";
            swfobject.embedSWF("http://www.reggesign.nl/assets/snippets/viewer/simpleviewer.swf", 
"flashContent", "100%", "100%", "9.0.124", false, flashvars, params);
        </script>
        
<div id="flashContent">Dit pagina vereist Flash Player, download 
<a href="http://get.adobe.com/flashplayer/">hier</a>.

I would be pleased to hear youre opinion, thanks in advance!

Regards, Nick  wink

Last edited by reggesign (2010-03-31 14:10:47)

Re: Simpleviewer first photo won't load

Are you using the latest version of SimpleViewer, version 2.0.2?

Mike Richards
SimpleViewer Support Team.

Re: Simpleviewer first photo won't load

The problem is that you are specifying some URLs with domain 'www.reggesign.nl' and some with domain 'reggesign.nl' (no www). The Flash Player considers these 2 different sub-domains and throws a security error.

The solution is use relative URLs OR to use the same sub-domain for all URLs in the HTML doc and the gallery.xml.

Felix Turner
SimpleViewer Support Team.

Re: Simpleviewer first photo won't load

Felix wrote:

The problem is that you are specifying some URLs with domain 'www.reggesign.nl' and some with domain 'reggesign.nl' (no www). The Flash Player considers these 2 different sub-domains and throws a security error.

The solution is use relative URLs OR to use the same sub-domain for all URLs in the HTML doc and the gallery.xml.

I thank you very much, this was the solution for this problem. I just didn't expected that this should deliver a problem. Thanks again!