Hello,
I want to set XML attribue's value dynamically, but not sure whether this is possible without using events (and actions).
From my html document, I am passing a parameter "langauge".
QuoteDisplay More
<script>
embedpano(
{
id:'vr',
xml:"tour.xml",
target:"pano",
html5:"only",
mobilescale:1.0,
initvars:{
langauge: en
}
}
);
</script>
And I have multilanguage set in krpano XML format.
Quote
<multi_language>
<welcome name="welcome" en="Welcome" de=Wilkommen" it="Benvenuti" .../>
...
</multi_language>
I want to set scene's title depending on the language setting using multi_language XML element.
I have tried following and realized that get() function doesn't work in attribute.
Quote<scene title="multi_langauge.welcome[welcome].get(lanauge)" .../>
I saw "get:..", "calc:" feature in the krpano vrtourskin.xml and thought maybe I could use this feature to achieve my goal, but no luck..
I know I could use events+actions (or JavaScript CDATA too?) to make it work but if possible, I want to use minimum code.
Anybody had this issue too?
Best Regards,
hyung