Sie sind nicht angemeldet.

perspixe

Schüler

  • »perspixe« ist der Autor dieses Themas

Beiträge: 64

Wohnort: Bologna, Italia, Vancouver, BC

  • Nachricht senden

1

Freitag, 28. Oktober 2016, 12:00

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/index.php?p…&threadID=12300
I'll post there to see if something had been found

perspixe

Schüler

  • »perspixe« ist der Autor dieses Themas

Beiträge: 64

Wohnort: Bologna, Italia, Vancouver, BC

  • Nachricht senden

2

Montag, 31. Oktober 2016, 15:40

I did it a different way with loadxml. It works but I ran into other issues. will make new thread for that.