I've developed a web app. It uses jQuery, for the development I used it dowloading it from google like this:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>
But the app is going to run without access to internet, so I changed that line so jQuery is downloaded from the local webserver like this:
<script src="jquery.min.js" type="text/javascript"></script>
And this doesn't work!! It's driving me crazy, I don't understand why. The jQuery file of course is in ther server, and it's properly dowloaded:
Any idea?!
Chrome gives me the following error:
Everything works fine if I download the library from google!! What's happening?!
It's exactly the same version because to get the library I just went to the link from google and download it. I also tried with the latest version available at jQuery.com but the same problem...
I tried to re download the jQuery from google and from jquery.com and it still doesn't work... I tried to just load the jQuery library and nothing else but still doesn't work, here is the image of the warning of the developer tools:
New update:
I did exactly the same in an other computer and it does work! So the problem must be in my apache when it serves the file, It's that possible or I'm making up things? The other computer has exactly the same php + apache config... so weird...