Why does this NOT work
onclick="loadxml(../data2/tour.xml,null,blend,IGNOREKEEP);"
but this works in flash but not in HTML5.
onclick="load(../data2/tour.xml,null,blend,IGNOREKEEP);"
Hans
Why does this NOT work
onclick="loadxml(../data2/tour.xml,null,blend,IGNOREKEEP);"
but this works in flash but not in HTML5.
onclick="load(../data2/tour.xml,null,blend,IGNOREKEEP);"
Hans
Well I finally solved it by using loadpano instead.
So it looks like this
loadpano(../data2/tour.xml,null,blend,IGNOREKEEP);"
But I do not understand why a command which obviously is wrong works when the correct one does not.
I do not load a pano directly but I load an xml with scenes.
Hans
I would venture a guess that load is a depreciated command from the early days of Krpano. As Klaus keeps the software backwards compatible, it still functions but has not been updated in quite a while since there are separate commands for scenes and xml loading. Scenes were not around when I purchased my license so there was no need for a loadscene command back then. However, as far as I can remember, which I believe is version 1.0.6, loadxml has been around and in use,----Edit: but not for scenes.---/Edit
--Re-edit: I was thinking loadpano when I wrote loadxml in the paragraph above ---/re-edit
I have found an old thread that is about exactly the same.
http://www.krpano.com/forum/wbb/inde…oadxml#post5846
Apparently loadxml is not supposed to be used at what it sounds like.
Hans
I could be missing the point, but loadpano() and loadxml() are both documented here:
https://krpano.com/docu/actions/#loadpano
loadxml() is not supposed to be used to load a file, but instead you pass an xml string to it directly.
loadpano() loads the specified xml file into a string and then continues in the same way as loadxml()
wrong post.
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!