Sie sind nicht angemeldet.

canadarama

Anfänger

  • »canadarama« ist der Autor dieses Themas

Beiträge: 31

Wohnort: Canada

Beruf: Photographer

  • Nachricht senden

1

Montag, 16. März 2015, 22:03

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:

Quellcode

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.

Quellcode

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!

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »canadarama« (17. März 2015, 07:58)


2

Dienstag, 17. März 2015, 10:40

Hi,

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

Best regards,
Klaus