set new url and load via javascript

  • I am trying to load in a pano a new url for the source image, from javascript.

    var krpano01 = document.getElementById("myPanoID");
    krpano01.set("image.sphere.url", new file);

    Can't get it to work... Maybe an alternative way?

    FI, The pano is created just before loading the url as
    embedpano({xml:"thepano.xml", id:"myPanoID", target:"pano_div", html5:"only", mobilescale:1.0, passQueryParameters:true, wmode:"transparent"});
    the xml file contains important things but the url of the image is "", then I try to set an url with the command above.

    A potential issue with what I am doing, embedding and removing panos often, is described in
    https://krpano.com/forum/wbb/inde…&threadID=12300
    I'll post there to see if something had been found

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!