Hi,
i've read some on the forum... but.. i'm unsure..
is it possible to include an xml on command..?
so, when close textfield include thumbs.xml or so??
i'm afraid not...
workaround?
Thanx
Tuur
Hi,
i've read some on the forum... but.. i'm unsure..
is it possible to include an xml on command..?
so, when close textfield include thumbs.xml or so??
i'm afraid not...
workaround?
Thanx
Tuur
Hi Tuur,
i am not sure about what I am going to say...
Perhaps using loadxml() would be the way...
I need to try... Never used that function...
SAlut.
Hi,
is it possible to include an xml on command..?
no, sorry, that's not possible...
Perhaps using loadxml() would be the way...
no, loadxml() loads the xml as string/test,
that can be used for example from an plugin when the xml was generated dynamically,
e.g.
best regards,
Klaus
oke that's clear..
what can i do to make things load later then in the first instance...
like 1000 thumbnails... and so on..
would be nice when it not loads with the first picture but for example when you close the intro text or so..
esspecialy for big tours with a lot of content i can imagine that that is nice..
maybe remove plugin but i thoink it'snot possible to remove before loading...
?
Tuur
Hi!
Maybe calling an action to add a plugin after loadpano?
'loadpano' sets onstart actions for the next panorama
Don't load that plugin in the first panorama. Then, in the action to open other rooms, add an action to create a plugin:
onclick="loadpano(pano01.xml, null, MERGE, BLEND(2));
action(new_plugin); "
<action name="new_plugin">
addplugin(my_new_plugin);
...
</action>
Hope this helps
i was thinking about an delayed call on the include xml..
let's try..
Tuur
I have a similar situation where I have an English Skin to my pano via english.xml which is loaded via <include> </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?
Maz
Hi,
has anyone solved this problem? It would be nice to have a dynamic include tag like this:
if(app == 'fb', <include url="%SWFPATH%/navigation.xml"/>);
BR
Kai
i have the need for something like this now as well. Klaus is there anyway to accomplish dynamically adding and removing xmls?
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?
Hey. Getting it done?
<include url="some_name.xml" if="varialble_name === 'enabled'" />
take care to initiate variable_name before Krpano is started in html or as parameter
Can this same function be used to load device specific skins out of tour.xml?
ie. <include url="skin/vtourskin.xml" if="device.desktop == 'true'" />
<include url="skin/mtourskin.xml" if="device.mobile or tablet == 'true'" />
See more here
Don’t have an account yet? Register yourself now and be a part of our community!