I would like to call javascript function from krpano. I follow the documentation: https://krpano.com/docu/plugininterface/#js , with no luck. I do not see an example in krpano distribution that demonstrates this functionality.
Bear with me, I am Javascripts begginer:
1) Should the plugintemplate.js work on IE8?
2) Where do I place the javascript code? Could I just add it to the krpano generated html like this:
<script type="text/javascript">
var swf = createswf("krpano.swf", "krpanoSWFObject", "100%", "100%");
swf.addVariable("xml", "Citysmall.xml");
swf.embed("krpanoDIV");
var krpanoplugin = function()
{
var local = this;
var krpano = null;
var plugin = null;
local.registerplugin = function(krpanointerface, pluginpath, pluginobject)
{
krpano = krpanointerface;
krpano.trace("hello from plugin.");
}
function fun()
{
krpano.trace(1,"fun called");
}
};
The code above does no work for me on IE8. The "registerplugin" is never called. Also, I cannot get the function "fun" called from krpano.