Switching variable from krpano to javascript

  • Hello,
    For a non-krpano treatment, I need to include some krpano variables in my javascript :
    for example the name of the active hotspot and some specific values calculated within krpano.
    I found "jsget" to do the reverse path (JS to krpano). But I don't find a krpano function (to be integrated in a <action> tag) to make the krpano path to a javascript function.
    My xml :


    <actionname="Ac_21_1900"scope="local"args="disth,name_">
    calc(layer[Info].html, name_ + '
    [br]
    ' + disth + ' [br]
    <br/> Bloc=21<br/> Altitude=1902m '+ name_ +'<br/>');
    jscall (ecransCtrl.synchroHotspot( name_ ) );

    </action>
    jscall (ecransCtrl.synchroHotspot( name_ ) ); does not work
    ecransCtrl is my js file
    synchroHotspot is my js function
    name_ = the name of my hotspot
    Do you have any leads. New to the field, I've been looking for several days.
    Thanks

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!