PDA

View Full Version : Pano not displayed online, offline no problem


phberlin
09-08-2007, 05:04 PM
Hey everyone,

I know similar problems have already been discussed on this forum, but I did not find a suitable thread for what I am trying to deal with. If there is something like this, please just point me there :-)

Well, my problem: I want to use "Greybox" to display my panos on my website. Offline everything is fine, while online the pano is not being displayed -- only an empty greybox is opened and instead the user is prompted if he wants to download/open the SWF file. This happens with Firefox 2, Opera 9 and IE6 as well. Offline, it all works fine (also with all of these browsers).

I guess this might be a Flash security thing, since the pano files are not in the same folder like my php-site or for whatever else reason...

My folder structure is:

www.mydomain.com/show_my_panos.php (<-- the site that references the panos via Greybox)
www.mydomain.com/panorama/pano1/pano1.swf, pano1.xml, images ...
www.mydomain.com/panorama/pano2/pano2.swf, pano2.xml, images ...
and so on...

(So I'm having a Greybox-link at my PHP-site that references the SWF in a subfolder of the same domain.)

What can I do about this? Since it perfectly works offline, I guess there must be something I'd have to change to make this possible online as well? Maybe this is something about the "policy file" mentioned in the XML? (<-- only guessing without knowing what is exactly is for, sorry :confused:)

Things I have tried without success:
-- Put all the files (swf, xml, images, plugins) in the same folder like the PHP-site.
-- Use absolute paths instead of relative ones.
-- Smash my head against the TFT-display after several "offline-OK-online-no-way"-actions.

Any help is gratefully appreciated :D

Regards, Ph.

phberlin
09-09-2007, 12:35 AM
Already solved it myself :-)

Maybe someone finds this useful, so I explain how: I do not load directly the SWF in the Greybox, but a HTML-site, that embeds the SWF via SWFobject.js. Everything works like it is supposed to then: the pano-gallery-PHP-site and the panos themselves are in different (sub)folders -- no problem.