Works local but not online

  • Hi, I spent a lot of time an a small error so I tell you so you don't loose yout time like me (and maybe Klaus could explain me the reason ?)
    My hotspots calls a javascript function to display an image, I made a style for all the hotspots and a tag "image" for each to tell them wich one to open :
    <hotspot style="poi" image="image_folder/my_image.jpg".../>
    <style name="poi" url="icons/loupe.png" onclick="js(openImage(get(image)))" />

    this was working perfect local but nothing appens online... until I added quotes to get(image)

    <style name="poi" url="icons/loupe.png" onclick="js(openImage('get(image)'))" />

    and then it worked perfect online too, but I still don't understand why the first version was working locally ?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!