Accessing / Edit xml messages nodes via JS

  • Hi all,

    is it possible to get/set the "data" xml nodes inside mytour_messages_en.xml file? (i'm using PanotourPro 2).
    I need to change some of the values to:
    - dynamically load different videos inside the same video player
    - change the language of the hotspots' tooltipls


    Ty

  • data are read and can be modified from the memory. Why would you like to change the xml file?
    If data are structured properly than by changing simple varialble that keeps the language, different data would be read out of your structure. Same apply to video or any later usage.

  • Can you show me an example of how to access a data variable and change it's value? I tried in many ways, but got no success :(

    <data name="en_spotpoint442_tooltip"><![CDATA[test]]></data>


    krpano.set('data[en_spotpoint442_tooltip], value')
    krpano.set(en_spotpoint442_tooltip, value')


    and others didn't work.

Participate now!

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