pass initvars to included xml

  • I have several pano's which have the same hotspots, so I want to include an XML with the all those hotspots into my different pano's (that works fine)

    The hotspots images are passed with initvars... how can I pass my initvars to that included xml?

  • This is de script to call the pano

    Code
    embedpano({swf:"/pano_1/pano.swf", xml:"/pano_1/pano.xml", target:"pano", html5:"auto", mobilescale:1.0, consolelog:true, initvars:{"company_logo":"\/assets\/company\/1\/Aantekening_2020-07-10_101615.png","creditor_url":"\/product\/creditor\/2488\/668","newproducts_url":"\/product\/new\/2488\/668","promotions_url":"\/product\/promotions\/2488\/668","downloads_url":"\/downloads\/1","company_url":"\/company\/info\/1","booth_image_1":"\/assets\/booths\/668\/Conway_logo_3.jpg","booth_image_2":"\/assets\/booths\/668\/Death_to_stock_Kashmir_Big_Cartel_7.jpg","booth_image_3":"\/assets\/booths\/668\/Conway_gesprek_klant.JPG","booth_image_4":"\/assets\/booths\/668\/DeathtoStock_Clementine1.jpg"}, passQueryParameters:true});

    or the second pano...

    Code
    embedpano({swf:"/pano_2/pano.swf", xml:"/pano_2/pano.xml", target:"pano", html5:"auto", mobilescale:1.0, consolelog:true, initvars:{"company_logo":"\/assets\/company\/1\/Aantekening_2020-07-10_101615.png","creditor_url":"\/product\/creditor\/2488\/668","newproducts_url":"\/product\/new\/2488\/668","promotions_url":"\/product\/promotions\/2488\/668","downloads_url":"\/downloads\/1","company_url":"\/company\/info\/1","booth_image_1":"\/assets\/booths\/668\/Conway_logo_3.jpg","booth_image_2":"\/assets\/booths\/668\/Death_to_stock_Kashmir_Big_Cartel_7.jpg","booth_image_3":"\/assets\/booths\/668\/Conway_gesprek_klant.JPG","booth_image_4":"\/assets\/booths\/668\/DeathtoStock_Clementine1.jpg"}, passQueryParameters:true});



    I have some hotspots defined in an external xml file...

    Code
    <include url="hotspots.xml" />


    and inside the external xml there are some of the initvars...

    Code
    <hotspot name="action_cart"							style=""						 	url="../buttons/cart.png"							 if="creditor_url"							onclick="popup('iframe', calc(creditor_url), 1400, 600, true);"							width="40"							height="40"						 	ath="46.129439979033464" atv="10.758831964056416" scale="1" rx="0" ry="0" rz="0" />		<hotspot name="action_eye"							style=""						 	url="../buttons/eye.png"							 if="newproducts_url"							onclick="popup('iframe', calc(newproducts_url), 1400, 600, true);"							width="40"							height="40"						 	ath="-25.06691851111168" atv="9.089397234949919" scale="1" rx="0" ry="0" rz="0" />			<hotspot name="action_star"							style=""						 	url="../buttons/star.png"							 if="promotions_url"							onclick="popup('iframe', calc(company_url), 1400, 600, true);"							width="40"							height="40"						 	ath="2" atv="5" scale="1" rx="0" ry="0" rz="0" />

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!