Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Mittwoch, 10. Juni 2020, 09:39

load url with variables

Hey,

I need to load an iframe with a dynamic url when clicking a hotspot, I have already found out how to pass initvars to my pano and this is working fine but I can't seem to get the initvars into my dynamic url...

I am starting from this example and using the iframe to load dynamic content:
https://krpano.com/releases/1.20.7/viewe…tml5=only+webgl


Basically I need to load the page /products/customer/<customer_id>


My hotspot code is

Quellcode

1
<hotspot name="basket" style="skin_infostyle"			html="Web"			ath="32" atv="23.5"			url="/assets/booths/products.jpg"			onclick="popup('iframe', '/products/customer/%$customer_id%', 1400, 600, true);"			/>



But it doesn't seem to work this way... anyone knows a way to get this working?

2

Mittwoch, 10. Juni 2020, 10:47

for example...
https://mydomain/mypath/?customer_id=12356
popup('iframe', calc('/products/customer/%' + customer_id+ '%'), 1400, 600, true);

3

Mittwoch, 10. Juni 2020, 20:09

for example...
https://mydomain/mypath/?customer_id=12356
popup('iframe', calc('/products/customer/%' + customer_id+ '%'), 1400, 600, true);
popup('iframe', calc('/products/customer/%' + customer_id+ '%'), 1400, 600, true);
calc seems to do the trick, thanks!