Just having a hard time here, hope it's really to solve... Here it goes:
While trying to include jQUery, in a script, it will only load it if the file is located in the base directory (working with localhost, my file is called jquery.js):
<script type="text/javascript" src="jquery.js" ></script>
But when I try to use the same file put in a subfolder, say "js/jquery.js" then it won't recognize it no matter how many different name variants I use:
<script type="text/javascript" src="/js/jquery.js" ></script>
<script type="text/javascript" src="js/jquery.js" ></script>
<script type="text/javascript" src="http://localhost/js/jquery.js" ></script>
<script type="text/javascript" src="http://localhost/js/jquery.js" ></script>
In addition, I tried to get the base directory using "echo $_SERVER['DOCUMENT_ROOT']."";" to add the full path letter by letter to no avail. THe result I got was '/var/www', tried these lines but didn work either:
<script type="text/javascript" src="var/www/js/jquery.js" ></script>
<script type="text/javascript" src="/var/www/js/jquery.js" ></script>
What could be going on here? Weird thing is that images are loaded with no problem, for
example: scr="IMG/imagie.gif"
Any thoughts on this?