Sie sind nicht angemeldet.

1

Dienstag, 15. März 2016, 23:35

Passing Variable from HTML to XML issue?!

Hi, I pass variables from HTML page to tour.xml and all worked fine with krpano 1.16 & 1.17, I want to switsh to krpano 1.19 but its no more working, the same thing with 1.18 version! It looks like if krpano does not parse viewer.addvariable content in html page !!

Example:
in tour.html I have:
viewer.addVariable("variable1",'value1');
viewer.addVariable("variable2",'value2');
viewer.addVariable("variable3",'value3');

And in tour.xml I use the Get action to have the variables values. I didn't change anything in my xml working with versions 1.16 /1.17!

Thank you for your help *cool*

2

Mittwoch, 16. März 2016, 11:42

See how variables are set there now:

Quellcode

1
2
3
	<script>
		embedpano({swf:"../../krpano.swf", xml:"tour.xml", target:"pano", html5:"prefer", initvars:{design:"flat"}, passQueryParameters:true});
	</script>

Source: http://krpano.com/docu/html/#initvars
Example: view-source:[url]http://krpano.com/tours/paris/?xml=skinselect.xml[/url]