You are not logged in.

1

Friday, October 10th 2014, 10:43am

loadxml data[XXX] makes Panorama can't display

<data name="templateurl" url="" >
<![CDATA[
<include url="%SWFPATH%/skin/ctest.xml" />
]]>
</data>

<action name="add_dynamic_datahtml">
loadxml(get(data[templateurl].content), null, KEEPALL);
</action>

loading xml is success but that makes Panorama can't display


thanks a lot ~

2

Friday, October 10th 2014, 6:40pm

Hi,

there could be multiple reasons why this wouldn't work...
Can you show a link to a full not working example?

Best regards,
Klaus

3

Saturday, October 11th 2014, 3:39am

example url : http://vrtest.othink.cn/vrtest/index.html

I added this code in the vtourskin.xml


<data name="templateurl">
<![CDATA[
<include url="%SWFPATH%/skin/ctest.xml" />
]]>
</data>


<action name="add_dynamic_datahtml">
loadxml(get(data[templateurl].content), null, KEEPALL);
showlog(true);
</action>


<!--event onloadcomplete perform this action-->
<action name="add_menu">
add_dynamic_datahtml();
</action>










ctest.xml code:




<krpano>


<contextmenu fullscreen="true"
enterfs="全屏"
exitfs="退出全屏"
>
<item name="gongsi"
caption="地产数字化营销整合:微想智森(网址:http://www.othink.cn)"
enabled="true"
visible="true"

onclick="http://www.othink.cn"
/>
<item name="dianhua"
caption="服务专线:400-001-6166"
onclick="http://www.othink.cn"
separator="false"
/>
<item caption="正常视角" onclick="action(view_normal);" separator="true" />
<item caption="鱼眼视角" onclick="action(view_fisheye);" />
<item caption="保真视角" onclick="action(view_architectural);" />
<item caption="极射平面投影" onclick="action(view_stereographic);" />
<item caption="超小视角" onclick="action(view_pannini);" />
<item caption="小行星视角" onclick="action(view_littleplanet);" />
</contextmenu>
</krpano>