Getting the JavaScript from code / different files. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Getting the JavaScript from code / different files. (
/showthread.php?tid=571285)
Getting the JavaScript from code / different files. -
d3ll - 17.04.2015
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?
Re: Getting the JavaScript from code / different files. -
Vince - 17.04.2015
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.
Re: Getting the JavaScript from code / different files. -
d3ll - 17.04.2015
Ohhhhhhhhhhh sorry.
Re: Getting the JavaScript from code / different files. -
Jimmy0wns - 17.04.2015
if the
holdings folder is in the root (e.g: public_html/www) then you can do
/holdings instead of
./holdings.