Sie sind nicht angemeldet.

1

Donnerstag, 31. Mai 2012, 06:18

Execute javascript code within the viewer

Hello, I'm trying to find a way to execute some javascript code defined on the html page that embeds the krpano viewer, however I want to execute that function when a certain action inside the viewer is done, for example onlick, or on hotspot click, etc. I already have seen the javascript interface that allow us to execute an action within a javascript function, but the inverse is possible? An action that executes code on the web page. Thanks a lot.

2

Donnerstag, 31. Mai 2012, 08:39

Hi,

yes, see the js() action:
http://krpano.com/docu/actions/#js

with it you can call your Javascript functions from the xml,

best regards,
Klaus