• Hi!
    I'm trying to understand, how to use js() action in my pano. For example, i will call javascript function on clicking the hotspot

    Code
    <hotspot name="test" onclick="js(myTestJavascriptFunction());" />


    In HTML file test.html i have this function.
    How should i link xml and html files to make it working?

  • Hi,

    what do you mean with "link xml and html" ?

    the call itself is right, and when you have a "myTestJavascriptFunction" Javascript function defined anywhere
    (it doesn't matter if it is in an included .js file or inside the html) it should work...

    ...but as note - when testing the javascript interface locally - then the flash must be in a trusted folder (see here),
    otherwise the javascript interface will not work (there will be a warning in the krpano log - external interface not available),

    best regards,
    Klaus

Participate now!

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