Hi all
so far all examples i got was to call functions and then change something in krpano plugins or positions (there is one example in the skin file
but i did not find any to "return a value"
Code
<action name="register_javascript_actions2" type="Javascript" autorun="preinit">
krpano.actions.getlanguagecontent = function( labelId , type , outresult)
{
args[2]='ola';
outresult = 'ola';
}
</action>
when i call
i was hoping to get 'ola' in the outputfromfunction variable bit it stays null all the time
tried with args and setting the variable directly and i always get null
i see the function running because i added some "console.log" and it displays
thank you for the help