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.

1

Wednesday, September 15th 2010, 7:11pm

Can I change krpano tag attributes values from an action?

I have global.xml wich I include in all my tours, and in that file I want to change the logkey attribute that is in the main xml.

I tried this:
<events onloadcomplete="set(logkey,false);" /> and <events onloadcomplete="set(krpano.logkey,false);" />

But it won't work, any idea if it can be done?

Thanks
My Krpano plugins: Auto Thumbs - Tooltip - Abs

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

2

Thursday, September 16th 2010, 9:06am

Hi hernan124,

Source code

1
<events onloadcomplete="set(logkey,false);" />

That's correct...

Source code

1
<events onloadcomplete="set(logkey,false);showlog();trace('logkey ',logkey)" />

the trace action return:

Source code

1
INFO: logkey false

but seems to have no effect...
Then, it seems that logkey can not be set dynamically...

SAlut.

rdhoore108

Trainee

Posts: 89

Location: Belgium

Occupation: Systems and Network Administrator

  • Send private message

3

Thursday, September 16th 2010, 3:28pm

That is correct, the docs state for logkey:

logkey
disable the 'O' key, which switch the log window on/off
allowed values: true or false, default is true
note: this parameter is only checked once at startup
- Ronny D'Hoore

4

Thursday, September 16th 2010, 8:16pm

Alright, thank you both.

Knowing that, for the logkey particulary, I found out from another post that I can set parameters when embeding the swf, so:

swf.addVariable("logkey","false");

Note that it works only if you put it before the swf.embed(..)

Cheers!
My Krpano plugins: Auto Thumbs - Tooltip - Abs

5

Sunday, September 19th 2010, 4:08pm

You can also just disable it and then make your own action/key to open the log, which you can then control as you please...