Beiträge von daniloKordic

    OK I finally managed to get this to work so here is my solution:

    in my XML I added the following line to the end of the file:
    <events onloadcomplete="looktohotspot(get(myHotspot),120, 'shortestway');" />

    and in my page when I called the panorama with embedpano I passed myHotspot variable like this:

    var fHotspot='shoes';
    embedpano({
    swf:"tours/tour1/tour.swf",
    xml:"tours/tour1/tour.xml",
    target:"pano",
    html5:"never",
    passQueryParameters: "false",
    vars: {myHotspot: fHotspot}
    });

    so when the panorama loads it automatically focuses on the desired hotspot!

    Thanks for everyone's help and I hope that I helped someone... *wink*

    OK, so as I see no one has the answer for me so I want to clarify the matter and explain a little better in hopes that someone can show me the way.
    so here goes:

    here is my code for embedding panorama:

    <div class="span12perc" id="pano">
    <noscript>
    <table style="height:100%;">
    <tr style="valign:middle;">
    <td>
    <div style="text-align:center;">
    ERROR:<br/><br/>Javascript not activated<br/><br/>
    </div>
    </td>
    </tr>
    </table>
    </noscript>
    <script>
    embedpano({
    swf:"tours/tour1/tour.swf",
    xml:"tours/tour1/tour.xml",
    target:"pano",
    html5:"never",
    passQueryParameters:"true"
    });
    </script>
    </div>

    I have a hotspot name in a variable that I want to pass to the panorama and to user lookathotspot() to change the initial view to that hotspot.
    I read that you can set passQueryParameters to true and then use the parameters passed through url in the xlm, but I need and example how exatcly.

    I think that this url parameter must be used in startup action in xml but don't know how to.
    Please if someone can show me, really bugging me for days now... *cursing* *cursing* *cursing*

    can someone PLEASE help me figure out how to use this function!?!

    I want to make the panorama look to a specific hotspot when the page loads.
    On the page I have a hidden field with the hotspot name and I just want to set the initial panorama view to that hotspot.
    I'm going in circles and looking through documentation but don't know how to use lookathotspot function on page load.

    Thank you for your help in advance...

    Hi all,

    here is what I want to achieve:
    based on a user choice the panorama is loaded and focused on a hotspot that users choose.
    For instance if the user chooses to view pants in a virtual shop I open a shop panorama and focus on a polygonal hotspot of pants in the panorama.

    Is that possible?
    Can I pass a variable on panorama load to XML or something..

    Hi guys,

    my problem is that I want to set a hotspot to open a modal window so I setup a hotspot with 4 points.
    I hook a JS function to open the window and all is working as it should in Firefox, but in Chrome I don't get the
    outline of a hotspot when hovering over the area where it should be and therefore I cannot click on it...

    This is strange.... What to do?

    Thanks

    well I found a workaround that works for me, so I will share...

    I added a polygonal hotspot and linked it to JS function successfully!

    and here is the code:

    hotspot in XML file:
    <hotspot name="gotolivingroom" onclick="js(test(123));">
    <point ath="-93.7" atv="-8.9" />
    <point ath="-83.4" atv="-15.3" />
    <point ath="-77.1" atv="-10.9" />
    <point ath="-62.1" atv="8.8" />
    <point ath="-60.4" atv="37.1" />
    <point ath="-82.2" atv="47.3" />
    <point ath="-92.8" atv="35.4" />
    </hotspot>

    and JS function in html file:
    function test(x)
    {
    //alert("function called with"+x+"!");
    newwindow=window.open('http://www.google.com','name','height=600,width=800');
    }

    hope I helped someone...

    Hi all,

    I have a single panorama and want to show a popup page when user clicks on certain area.
    I added a hotspot and edited xml to call a js function on page but nothing happens!?!
    What am I doing wrong?

    my XML:
    <hotspot name="spot1" style="skin_hotspotstyle" onclick="js( test() );" ath="53.284" atv="2.329" />

    my javascript:
    function test()
    {
    alert("function called!");
    }

    any help would be appreciated!!!