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.

Virtual Northland

Professional

  • "Virtual Northland" started this thread

Posts: 1,336

Location: Duluth MN

  • Send private message

1

Thursday, February 12th 2009, 2:40pm

how to do this ...

this is from Ceeby's Bungalow tour I have seen many of you others use this as well. http://www.circutour.com/bungalow/ I have my infomation box drop down onstart just like his tour however I cannot find a way to disable the onstart after its first load. if i leave my starting pano and come back it onstarts again. I just want it to load the first time and then disable it until it is called on by my information icon. Ceeby's tour runs the way I want mine to but I cannot see his code. Any help anyone? I almost have my first professional tour complete and this is holding me up.

2

Thursday, February 12th 2009, 10:17pm

Hi,

which "onstart" do you want to disable?

1. have you defined a onstart on every pano xml (<krpano onstart="...">) and don't want to execute it?

or

2. do you mean the "onstart" parameter of the loadpano() action?


for the 1. type:
when you load a other xml, which has "onstart" attribute, this "onstart" will be
overwritten when you add calls as 4. parameter OR after the loadpano() call,

e.g. - here a action is called after loadpano():

Source code

1
onclick="loadpano(nextpano.xml);action(do_any_thing_instead_of_nextpanos_onstart);" 


this suppresses the onstart of the nextpano.xml,


or type 2 - when you have already loadpano calls in this format:

Source code

1
2
3
<action name="combobox:Front Deck">
   loadpano(front.xml,...); wait(blend); lookto(...);"
</action>


and want to remove the calls after loadpano(),

there are more possiblities:

e.g. split this into 2 actions, and "change" the "content" of the first
action after the first call:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
<action name="combobox:Front Deck">
    action(front_deck_load);
    action(front_deck_onstart);
</action>

<action name="front_deck_load">
    set(action[combobox:Front Deck].content, action(front_deck_load) );
    loadpano(front.xml,...); wait(BLEND);
</action>

<action name="front_deck_onstart">
    lookto(...);
    lookto(...);
</action>


in the "front_deck_load" action the "combobox:Front Deck" action
was changed to only "action(front_deck_load)", that means on the next
call of "combobox:Front Deck" only the loading code will be executed,

I hope this was understandable, while witting it down yet,
it sounds a little bit confusing

best regards,
Klaus

Virtual Northland

Professional

  • "Virtual Northland" started this thread

Posts: 1,336

Location: Duluth MN

  • Send private message

3

Friday, February 13th 2009, 1:56am



which "onstart" do you want to disable?

1. have you defined a onstart on every pano xml (<krpano onstart="...">) and don't want to execute it?

this is what I was using. Yes that makes sense I have been able to stop the onstart with these directions. Thank You very much Klaus.