You are not logged in.

21

Monday, November 4th 2013, 7:42am

Hi,
And is this how you're including the file(s)?

<include url="virtualtour%$VMScene%.xml"/>
One note here - the given variables in the html file will be applied/set AFTER loading and parsing the xml.
This is necessary because these variables should be able to overwrite settings from the xml.

To use the variables instantly you need to load an other pano/xml before.

A simple way to do this would be loading an empty xml on startup,

e.g. this way:
1. load an empty xml (xml=null)
2. then the given variables will be passed and set
3. then load the real xml (now the variables can be used)

as code:
embedpano({..., xml:null, vars:{VMScene:"...", onstart:"loadpano(tour.xml);"}});

Best regards,
Klaus

22

Friday, November 15th 2013, 1:39am

Aaaah, that makes sense. I'll give that a shot right now. Thanks!