Variable not passing correctly, [object Object]

  • Hi,

    And is this how you're including the file(s)?

    <include url="virtualtour%$VMScene%.xml"/>

    One note here - the given variables in the html file will be applied/set AFTER loading and parsing the xml.
    This is necessary because these variables should be able to overwrite settings from the xml.

    To use the variables instantly you need to load an other pano/xml before.

    A simple way to do this would be loading an empty xml on startup,

    e.g. this way:
    1. load an empty xml (xml=null)
    2. then the given variables will be passed and set
    3. then load the real xml (now the variables can be used)

    as code:
    embedpano({..., xml:null, vars:{VMScene:"...", onstart:"loadpano(tour.xml);"}});

    Best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!