You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Tuur

Master

  • "Tuur" started this thread

Posts: 2,196

Location: Netherlands

Occupation: Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

1

Tuesday, January 26th 2010, 1:28pm

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*

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

2

Tuesday, January 26th 2010, 4:26pm

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

Wednesday, January 27th 2010, 11:30am

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.

Source code

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


best regards,
Klaus

Tuur

Master

  • "Tuur" started this thread

Posts: 2,196

Location: Netherlands

Occupation: Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

4

Wednesday, January 27th 2010, 1:53pm

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*

Tourvista

Intermediate

Posts: 188

Location: Leicester UK

  • Send private message

5

Wednesday, January 27th 2010, 2:09pm

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:

Source code

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

Master

  • "Tuur" started this thread

Posts: 2,196

Location: Netherlands

Occupation: Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

6

Wednesday, January 27th 2010, 4:04pm

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


let's try..

Tuur *thumbsup*

mhobbi01

Beginner

Posts: 23

Location: New York

  • Send private message

7

Friday, July 16th 2010, 4:23am

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

Sunday, October 17th 2010, 2:43am

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

VN2009

Professional

Posts: 1,334

Location: Duluth MN

  • Send private message

9

Thursday, December 23rd 2010, 7:52pm

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