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

Wednesday, August 11th 2010, 9:55pm

Crossdomain acces

Hello,

I'm a bit confused on how to use properly the crossdomain.

I got domain1.com where all my files are stocked. (swf, xml, images, license etc)
I got domain2.com where I would like to display a Krpano virtual tour without putting any files on this server

I would like to access domain1.com from domain2.com to be able to get the swf and the xml file

Can someone give me a hand on this please,

Thanks

2

Friday, August 13th 2010, 10:09am

Hi,

you would need a 'crossdomain.xml" file on domain1 in this case which allows access from domain2 (or from anywhere),
here an example for a crossdomain.xml

Source code

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


best regards,
Klaus

3

Friday, August 13th 2010, 6:59pm

thanks klaus, worked perfectly!

JPC

Beginner

Posts: 40

Location: Paris

Occupation: Photographies and media

  • Send private message

4

Wednesday, September 8th 2010, 7:22pm

I dont anderstand why


i continue to have this error
a loading error of the first xml


with tis code,


it is important for me because it is the the way to diffuse largely what I and we do


Thanks

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>biodiversite</title>
<link rel="stylesheet" type="text/css" href= "default.css">
</head>
<body>
<div id="tour">
<noscript>ERROR: no Javascript</noscript>
</div>

<script type="text/javascript" src="http://www.iconoplaste.com/images/stories/flashrep/biodok/swfkrpano.js">
</script>

<script type="text/javascript">
var swf = createswf("http://www.iconoplaste.com/images/stories/flashrep/biodok/biodiversite02010.swf", "aptSWFObject", "600", "400");
swf.addVariable("xml","http://www.iconoplaste.com/images/stories/flashrep/biodok/biodiversite02010.xml"); //uncomment this line to load another xml first
swf.addParam("allowFullScreen","true");
swf.embed("tour");

if ( so.write("tour") )
{ var mousewheelfixes = new SWFkrpanoMouseWheel(so); }
</script>
</body>
</html>