Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.comno, sorry, that's not possible...is it possible to include an xml on command..?
no, loadxml() loads the xml as string/test,Perhaps using loadxml() would be the way...
|
|
Quellcode |
1 |
loadxml('<krpano> ... </krpano>');
|
Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.com|
|
Quellcode |
1 2 3 4 5 6 7 |
onclick="loadpano(pano01.xml, null, MERGE, BLEND(2));
action(new_plugin); "
<action name="new_plugin">
addplugin(my_new_plugin);
...
</action>
|
Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.com
I have a similar situation where I have an English Skin to my pano via english.xml which is loaded via </include> command. Now when a "Spanish" or "French" button is clicked, I would like to replace the english.xml with the corresponding spanish.xml or french.xml
In other words is there a way to swap an included xml midway through the tour by an action?
|
|
Quellcode |
1 |
<include url="something.xml" devices="desktop" /> |
|
|
Quellcode |
1 |
<include url="table_mobile_something.xml" devices="touch" /> |