Sie sind nicht angemeldet.

HansNyb

Profi

  • »HansNyb« ist der Autor dieses Themas

Beiträge: 1 063

Wohnort: Denmark

Beruf: Photographer

  • Nachricht senden

1

Mittwoch, 18. Mai 2011, 16:24

loadxml HOW to

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

HansNyb

Profi

  • »HansNyb« ist der Autor dieses Themas

Beiträge: 1 063

Wohnort: Denmark

Beruf: Photographer

  • Nachricht senden

2

Mittwoch, 18. Mai 2011, 16:36

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

3

Mittwoch, 18. Mai 2011, 16:47

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

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Jarredja« (18. Mai 2011, 17:24)


HansNyb

Profi

  • »HansNyb« ist der Autor dieses Themas

Beiträge: 1 063

Wohnort: Denmark

Beruf: Photographer

  • Nachricht senden

4

Mittwoch, 18. Mai 2011, 17:03

I have found an old thread that is about exactly the same.
http://www.krpano.com/forum/wbb/index.ph…oadxml#post5846

Apparently loadxml is not supposed to be used at what it sounds like.

Hans

5

Mittwoch, 18. Mai 2011, 17:12

I could be missing the point, but loadpano() and loadxml() are both documented here:
http://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()

6

Montag, 20. Juni 2011, 15:52

wrong post.

Ähnliche Themen