Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 2 774

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

1

Dienstag, 26. Januar 2010, 13:28

include

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 *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

2

Dienstag, 26. Januar 2010, 16:26

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.

3

Mittwoch, 27. Januar 2010, 11:30

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.

Quellcode

1
loadxml('<krpano> ... </krpano>');


best regards,
Klaus

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 2 774

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

4

Mittwoch, 27. Januar 2010, 13:53

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 *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

Tourvista

Fortgeschrittener

Beiträge: 246

Wohnort: Leicester UK

  • Nachricht senden

5

Mittwoch, 27. Januar 2010, 14:09

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:

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>


Hope this helps

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 2 774

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

6

Mittwoch, 27. Januar 2010, 16:04

i was thinking about an delayed call on the include xml..


let's try..

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

7

Freitag, 16. Juli 2010, 04:23

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 *confused*
Maz

Virtual Tour Group Inc.
VirtualTourGroup.com

8

Sonntag, 17. Oktober 2010, 02:43

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

9

Donnerstag, 23. Dezember 2010, 19:52

i have the need for something like this now as well. Klaus is there anyway to accomplish dynamically adding and removing xmls?

10

Mittwoch, 5. Oktober 2016, 12:09

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?

11

Samstag, 8. Oktober 2016, 11:57

<include url="some_name.xml" if="varialble_name === 'enabled'" />

take care to initiate variable_name before Krpano is started in html or as parameter