I’m having trouble with the correct path.
If I have the path to the video script on this page:
/themes/default/layout/search/page1.html
but the video script in on this page:
/themes/default/player/js/player1.js
what would the correct path be?
I’m having trouble with the correct path.
If I have the path to the video script on this page:
/themes/default/layout/search/page1.html
but the video script in on this page:
/themes/default/player/js/player1.js
what would the correct path be?
Hi there ChrisjChrisj,
try it like this, perhaps…
<script src="../../player/js/player1.js"></script>
coothead
or maybe like this:
<script src="/themes/default/player/js/player1.js"></script>
assuming that “/” is indeed the root directory.
If and only if you are using PHP then find out where you are and use …/, etc to the relative file otherwise hard-code the complete path.
<php
echo getcwd();
// set relative path
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.