You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Thursday, January 28th 2010, 7:51am

XML - Loading error (Security Error). My brain hurts!

Using 1.0.8 beta 9 64-bit Windows build.

I'm setting up KRPano so I can use a single defaultskin.xml for all the images I post. I finally got everything working locally. When I put it all up on the server I now get the ... .xml - Loading error (Security Error)
http://weaver.net/pano/2010/01/Mount_Bon…ell_Stairs.html

The XML: http://www.weaver.net/pano/skin/weaverdefault.xml

The weaverdefault.xml is the defaultskin.xml with a few things added and changed. I had some problems testing locally and made most of the URIs absolute reference to elements on the website. All the code is sitting on the same domain. I have an unlimited domain license I got as a bundle purchase with APP Giga.

The directory structure on the server:


Any suggestions?

2

Thursday, January 28th 2010, 8:08am

Hi,

in your html file your are loading the flash embedding javascript
with an absolute path from "www.weaver.net",
see:

Source code

1
<script type="text/javascript" src="http://www.weaver.net/pano/scripts/swfkrpano.js"></script>


but the site will be opened with - "weaver.net":
http://weaver.net/pano/2010/01/Mount_Bon…ell_Stairs.html

for the flashplayer these are two different domains and this is the problem,
cross domain access is not possible without crossdomain.xml file,

e.g. calling the site with the "www." in front of the url will work:
http://www.weaver.net/pano/2010/01/Mount…ell_Stairs.html

as solution I would recommend not to use complete paths,

if you want an absolute path write it in that way:

Source code

1
<script type="text/javascript" src="/pano/scripts/swfkrpano.js"></script>


best regards,
Klaus

3

Thursday, January 28th 2010, 8:17am

Hi,

in your html file your are loading the flash embedding javascript
with an absolute path from "www.weaver.net",
see:

Source code

1
<script type="text/javascript" src="http://www.weaver.net/pano/scripts/swfkrpano.js"></script>


but the site will be opened with - "weaver.net":
http://weaver.net/pano/2010/01/Mount_Bon…ell_Stairs.html

for the flashplayer these are two different domains and this is the problem,
cross domain access is not possible without crossdomain.xml file,

e.g. calling the site with the "www." in front of the url will work:
http://www.weaver.net/pano/2010/01/Mount…ell_Stairs.html

as solution I would recommend not to use complete paths,

if you want an absolute path write it in that way:

Source code

1
<script type="text/javascript" src="/pano/scripts/swfkrpano.js"></script>


best regards,
Klaus
Ah! I finally (DOH!) decided to look at it in Firebug and noticed that there was request for crossdomain.xml
I'm not a Flash guy at all so that was messing it up.

For now I need to keep the full absolute paths, this is due to working locally in a different file structure than what I have on the website. I added a crossdomain.xml to the root.

Source code

1
2
3
4
5
6
<?xml version="1.0" encoding="utf-8"?>
<!-- http://weaver.net/crossdomain.xml -->
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
  <allow-access-from domain="*.weaver.net" />
</cross-domain-policy>


Now I can call from www.weaver.net or just weaver.net.

Works great!

Thank you!!!

This post has been edited 3 times, last edit by "David_Weaver" (Jan 28th 2010, 9:20am)


4

Wednesday, February 24th 2010, 6:25am

Hi;

Maybe this is a dumb question but, I´m really interested in this software. I all ready daown load the two demo files for mac but the krpanotols do not start, I have a krpano.xml-loading error (10 Error). How do I solve this ?? I follewed the instructions for Flash Global Settings, and nothing, please help.

Thanks
Hi,

in your html file your are loading the flash embedding javascript
with an absolute path from "www.weaver.net",
see:

Source code

1

				


but the site will be opened with - "weaver.net":
http://weaver.net/pano/2010/01/Mount_Bon…ell_Stairs.html

for the flashplayer these are two different domains and this is the problem,
cross domain access is not possible without crossdomain.xml file,

e.g. calling the site with the "www." in front of the url will work:
http://www.weaver.net/pano/2010/01/Mount…ell_Stairs.html

as solution I would recommend not to use complete paths,

if you want an absolute path write it in that way:

Source code

1

				


best regards,
Klaus
Ah! I finally (DOH!) decided to look at it in Firebug and noticed that there was request for crossdomain.xml
I'm not a Flash guy at all so that was messing it up.

For now I need to keep the full absolute paths, this is due to working locally in a different file structure than what I have on the website. I added a crossdomain.xml to the root.

Source code

1

				


Now I can call from www.weaver.net or just weaver.net.

Works great!

Thank you!!!

5

Wednesday, February 24th 2010, 1:55pm

Hi,
Maybe this is a dumb question but, I´m really interested in this software. I all ready daown load the two demo files for mac but the krpanotols do not start, I have a krpano.xml-loading error (10 Error). How do I solve this ?? I follewed the instructions for Flash Global Settings, and nothing, please help.
Hi,

the krpano.swf which is included in the tools package is the just viewer itself,
when using the droplets it will be automatically copied to the pano folder,
or used as base swf when building a swf file with embedded images
(e.g. when using the MAKE PANO (SINGLESWF) droplet),

when the krpano.swf was opened without any parameter, it will try to load a .xml file
which is named like the .swf file - in this case - a krpano.xml file, but such file is not
included in the tools package,

for using the tools - try to move a panoramic image via drag and drop on one of the
MAKEPANO (###) droplet files,

best regards,
Klaus