Getting the JavaScript from code / different files.
#1

I'm pretty new to Web Development, can someone tell me how to get access to the javascript files from different directories...?

My folders go like this:
  • Main Folder
    • Server
      • Online Players (Can't get JavaScript)
    • Player
    • Config
    • Libs
Код:
<script src="./holdings/js/jquery-1.5.2.min.js" type="text/javascript"></script>
How would I get the online players / index.php JavaScript from the main folder?
Reply
#2

You do not need to include the './'. From your diagram I cannot deduct what folder you are currently in and what folder the JS resides in.

However, this forum section is Pawn only. Maybe a mod will move it to everything and nothing.
Reply
#3

Ohhhhhhhhhhh sorry.
Reply
#4

if the holdings folder is in the root (e.g: public_html/www) then you can do /holdings instead of ./holdings.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)