Sunday, June 2, 2024
 Popular · Latest · Hot · Upcoming
42
rated 0 times [  44] [ 2]  / answers: 1 / hits: 18434  / 14 Years ago, wed, may 5, 2010, 12:00:00

Using Notepad++ and XAMPP to test stuff, then I upload it to the website over FTP. In the head of my code, I have this to call jQuery and the script:



 <script type=text/javascript src=/jquery.js></script>
<script type=text/javascript src=/portfolio.js></script>


and it works fine locally on my XAMPP server. But as soon as it's uploaded onto the host, it throws this error:



Resource interpreted as script but transferred with MIME type text/html.


Not sure what's going on, or why it's having a hard time using jQuery. Any ideas?


More From » jquery

 Answers
31

Turns out the file name jQuery.js is what messed it up. Locally, the uppercase 'U' wasn't an issue, but on the server it's what caused it to break. I didn't even know this could happen :-/


[#96869] Monday, May 3, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
skyler

Total Points: 646
Total Questions: 119
Total Answers: 96

Location: Bonaire
Member since Wed, Mar 29, 2023
1 Year ago
;