Hi, please, What is wrong in this code?
<action name="mycode">
popup('iframe', 'index.html?starscene=scene4&startactions=trace('hello')', 800, 600, false);
</action>
Thanks!
Note: without startactions=trace('hello') works fine.
Hi, please, What is wrong in this code?
<action name="mycode">
popup('iframe', 'index.html?starscene=scene4&startactions=trace('hello')', 800, 600, false);
</action>
Thanks!
Note: without startactions=trace('hello') works fine.
without startactions=trace('hello') works fine.
did you try without the single apostrophes?
Tuur
Thanks Tuur, this code fail with any command, as the "&" char is not possible.
This action works fine:
<action name="mycode">
popup('iframe', 'index.html?startactions=trace('hello')', 800, 600, false);
</action>
but this not:
<action name="mycode">
popup('iframe', 'index.html?starscene=scene4&startactions=trace('hello')', 800, 600, false);
</action>
Hi,
it is a bit different
see here:
startscene only: https://www.virtualtuur.com/krpano/120/tes…rtscene=scene_2
+ startactions call (which is a name of a custom action called startactions.. value set to something else then null..
https://www.virtualtuur.com/krpano/120/tes…&startactions=2
obviously you need this action also to be there:
<!-- startup action - load the first scene -->
<action name="startup" autorun="onstart">
if(startscene === null OR !scene[get(startscene)], copy(startscene,scene[0].name); );
loadscene(get(startscene), null, MERGE);
if(startactions !== null, startactions() );
</action>
or specify action in url like:
https://www.virtualtuur.com/krpano/120/tes…;trace(koekoe););
or
https://www.virtualtuur.com/krpano/120/tes…noutbounce,4));))
and in an iframe:
https://www.virtualtuur.com/krpano/120/tests/startactions/2/
click the blue button.
make sure you use & a m p ; (without the spaces)
Hope it helps,
Tuur
Thanks very much Tuur!!!
& instead &
works fine!
Don’t have an account yet? Register yourself now and be a part of our community!