Sie sind nicht angemeldet.

1

Mittwoch, 4. Juli 2012, 14:01

Loading error (IO errror) when loading dynamically created xml,

Hello,
I have this problem - when my xml file is crated dynamicly on the server I get Loading error (IO errror).
When I use the same content of xml but not crated dynamically but as a xml text file - everything works fine.
In my html i use this code:

Quellcode

1
2
3
4
5
<script>
  var viewer = createPanoViewer({swf:"krpano/krpano.swf",target:"pano"});
  viewer.addVariable('xml', 'http://aroundcyprus.net/index.php?id=53&p=52');
  viewer.embed();
</script>


The dynamically crated xml file works well and in this case it will return:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
<?xml version="1.0" encoding="utf-8"?>
<krpano version="1.0.8.14" logkey="false">
<action name="mainloadpano">closepanoobjects();
    ifnot(stopSequence === undefined,interruptAnimation(););
    loadpano(%1,NULL,NULL,BLEND(1));</action>
  <include url="files/52/build/virtualtour-local.xml"/>
  <include url="krpano/generalTPL-v01.xml"/>
 <data name="html1" devices="desktop|tablet">52
<h2>History</h2>

The site was discovered in 1934 by... 
  </data>
</krpano>


Wold really appreciate Your insight in to this.
Lucas

2

Donnerstag, 5. Juli 2012, 08:56

I was playing a bit with my CMS and "found" a solution.
I've enabled friendly url's
so now my dynamically generated filename looks like this:
pano.xml?p=52

And this way it works properly