Embedding without external XML file

  • Hi all,

    I'd like to embed krpano viewer, but I don't want to load configuration through external XML file. External XML file means that we need to trivial HTTP handler to generate those XML files. It's such a simple task that implementing it on server makes absolutely no sense. No to mention unnecessary request made from client.

    We'd like to construct XML in the browser and pass it to dynamically created krpano viewer. It seems there's no way to do this or am I missing something?

    My point is to include XML as string and pass this string to krpano. Thank you

  • Hi,

    there are several ways to use krpano without external xml files,

    just set the xml parameter to null,
    e.g.
    https://krpano.com/krpano.html?xml=null

    additionally you can set any other krpano variables direct as flash variable,
    or make a call from javascript to load an xml string with the loadxml action,

    e.g. here such example - xml=null and the onstart event is set to a loadxml call with loads a xml string:

    Code
    http://krpano.com/krpano.html?xml=null&onstart=loadxml('<krpano><image><sphere url="panos/garten/garten_sphere.jpg"/></image></krpano>');

    here as link for testing:
    https://krpano.com/krpano.html?xm…3C/krpano%3E');

    best regards,
    Klaus

Jetzt mitmachen!

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