Relative path problem

  • Hi everyone,

    Please excuse my ignorance. Just trying to figure out first embedding attempt.

    I had some success with duplicating an .html file into the same directory as tour:

    Code
    <script src="embedpano.js"></script>
    <div id="pano" style="width:800px; height:400px;"></div>
    <script>  embedpano({swf:"krpano.swf", xml:"tour.xml", target:"pano"});</script>

    However, when I try to use in .html in site root, I get nothing.

    Code
    <script src="../tours/sample1/embedpano.js"></script>
    <div id="pano" style="width:800px; height:400px;"></div>
    <script>  embedpano({swf:"../tours/sample1/krpano.swf", xml:"../tours/sample1/tour.xml", target:"pano"});</script>

    I actually had it working at one point but changed something (what am I not seeing?).

    Any ideas? Thank you!

    Edited once, last by canadarama (March 17, 2015 at 7:58 AM).

Participate now!

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