Reputation: 17
I currnently have my files place on a virtual server (USB Webserver V8.2). Now when go on the server, open the page nothing happens. I know its something to do with the link path name, but I have tried changing the link in many different ways but nothing.
<script type="text/javascript" src="/root/help_page_code.js"></script>
Upvotes: 0
Views: 1195
Reputation: 10546
Validate if that is the same path as the physical path on your server.
If both the script and the webpage are in the same folder, you can choose this:
<script type="text/javascript" src="help_page_code.js"></script>
Upvotes: 0
Reputation: 14987
That's a relative path, so the server is looking for a directory named root
in the folder of the web page.
If you're trying to go up a directory from the page, just make it ../root/help_page_code.js
. If you're going up further, and have access, just add a ../
for each level.
Upvotes: 1
Reputation: 27765
Try to add dot .
before path:
<script type="text/javascript" src="./root/help_page_code.js"></script>
Upvotes: 0