I'm running CentOS 5.5 64bit - Trying to load a jquery plugin from a PHP file.
The line I am using is...
<script type="text/javascript" src="/tools/jquery.js"></script> ...This does not work. However, If I change the line to...
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" ></script> ...it works no problem. I can access the file through the browser, ie http://myserver.com/tools/jquery.js. Now I'd usually just the use the google hosting, but I've got some other Jquery plugins that I want to load locally. Any ideas why this isn't working? Cheers
EDIT:
To make it more confusing - I also tried...
<script type="text/javascript" src="http://myserver.com/tools/jquery.js"></script> ...but no luck.
I have also done chmod 755 on the jquery files. Giving read and execute permissions to everyone (-rwxr-xr-x).