You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

canadarama

Beginner

  • "canadarama" started this thread

Posts: 31

Location: Canada

Occupation: Photographer

  • Send private message

1

Monday, March 16th 2015, 10:03pm

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:

Source code

1
2
3
<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.

Source code

1
2
3
<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!

This post has been edited 1 times, last edit by "canadarama" (Mar 17th 2015, 7:58am)


2

Tuesday, March 17th 2015, 10:40am

Hi,

try using the browser developers/network tools to check the file paths, maybe something is still wrong...

Best regards,
Klaus