html link to scene and position not working

  • Hi, i have see here https://krpano.com/examples/117/e…nk/getlink.html the demo of html link, i have try, but in my pano isn't working, i don't know what i can do.

    I have 7 scene and use this code to embed the pano in my html page:

    ###################################
    <!DOCTYPE html>
    <html>
    <head>
    <title>FUORISALONE 2014 DEUTDESign - Zona Sant'Ambrogio, Via S.Vittore, 49 - Milano</title>
    <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <meta http-equiv="x-ua-compatible" content="IE=edge" />
    <style>
    @-ms-viewport { width:device-width; }
    @media only screen and (min-device-width:800px) { html { overflow:hidden; } }
    html { height:100%; }
    body { height:100%; overflow:hidden; margin:0; padding:0; font-family:Arial, Helvetica, sans-serif; font-size:16px; color:#FFFFFF; background-color:#000000; }
    </style>

    </head>
    <body>

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

    <div id="pano" style="width:100%;height:100%;">
    <noscript><table style="width:100%;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:"tour.swf", xml:"tour.xml", target:"pano", html5:"prefer", passQueryParameters:true});
    </script>
    </div>

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

    <script>
    // <![CDATA[

    var viewer = createPanoViewer({swf:"tour.swf", id:"krpanoObject", target:"pano"});

    // set the default xml file
    viewer.addVariable("xml", "getlink.xml");

    // pass all parameters from the html file to the viewer
    viewer.passQueryParameters();

    // pass the url of the html file to the viewer
    var curhtmlpath = String(document.location);
    curhtmlpath = curhtmlpath.substring(0,curhtmlpath.indexOf(".html")+5);
    viewer.addVariable("js_htmlpath", curhtmlpath);

    // embed and start the viewer
    viewer.embed();

    </body>
    </html>
    #####################################

    this is the html link, open the pano, but not where i want:
    http://10.39.202.126:8090/index-xml.html…&view.fov=80.00

    What's wrong?
    Thanks.

Participate now!

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