You are not logged in.

jeromebg

Professional

  • "jeromebg" started this thread

Posts: 793

Location: Angers - France

Occupation: Photographer

  • Send private message

1

Friday, January 17th 2014, 10:56pm

addhotspot in the url ?

Hi, maybe it's a stupid question...
Is it possible to execute an action in the url when passQueryParameters is set to true ?
I would like to be able to create links wich would add an hotspot in the panorama, something like that :
my_url/my_panorama.html?onstart=addhotspot(newspot)&set(hotspot[newspot].url,spot.png)&set(hotspot[newspot].ath,150)&set(hotspot[newspot].atv,30)...

thanx !

2

Monday, January 20th 2014, 11:25am

Hi,

yes, that's possible, but your syntax is wrong - action calls need to separated by ';' characters and not by '&',
e.g.

Source code

1
my_url/my_panorama.html?onstart=addhotspot(newspot);set(hotspot[newspot].url,spot.png);set(hotspot[newspot].ath,150);set(hotspot[newspot].atv,30);...


Best regards,
Klaus

jeromebg

Professional

  • "jeromebg" started this thread

Posts: 793

Location: Angers - France

Occupation: Photographer

  • Send private message

3

Monday, January 20th 2014, 9:10pm

Thanks Klaus !
Now I have to make his work with bit.ly ans it will be great !