HTML Page inside Pano Plugin >> [modal_window.xml]

  • Dear All

    I tryng to integrate the functionality specific at use of plugin detailed in:

    https://krpano.com/plugins/userplugins/htmlpage/#top

    This functionality run correctly if used in standalone mode, while if I try to add on my Angular site(on sever nodejs), it reply me at follow:


    "WARNING: js() - calling Javascript "openforma(400|300|http://www.example.it|example)" failed: ReferenceError: openforma is not defined"

    I assured that this file "modal_window.xml" is read(add tracing in it), adn really not understand what's missing.

    Follow part of code:


    1)krpano.html

    [..cut..]
    <link rel="stylesheet" href="iframe.css" />
    <script src="mootools.js"></script>
    <script src="ClassicFrame.js"></script>
    <script src="ClassicBarry.js"></script>
    </head>
    <body>

    <script src="krpano.js"></script>

    <div id="pano" style="width:100%;height:100%;">
    <noscript><table style="width:100%;height:100%;"><tr style="vertical-align:middle;text-align:center;"><td>ERROR:<br><br>Javascript not activated<br><br></td></tr></table></noscript>
    <script>
    embedpano({swf:"krpano.swf", xml:"krpano.xml", target:"pano", html5:"auto", mobilescale:1.0, passQueryParameters:true});
    </script>
    </div>

    [..cut..]


    2)krpano.xml

    <krpano>
    <include url="modal_window.xml" keep="true"/>
    [..cut..]
    <style name="hotspot_ani_black" url="onimo_elettricista.png" framewidth="48" frameheight="48" frame="0"/>
    [..cut..]

    <hotspot name="spot1" style="hotspot_ani_black" ath="-25" atv="-10" onclick="forma_px(400,300,http://www.repubblica.it,prova);" ondown="draghotspot();"
    onloaded="proviamoci();"/>

    <action name="proviamoci">
    switch(hotspot[spot1].visible,true,false);
    wait(10);
    switch(hotspot[spot1].visible,false,true);
    </action>
    [..cut..]


    Regards
    Vincenzo

Participate now!

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