jQuery works on local host, but not on website

Posted by Cortopasta on Stack Overflow See other posts from Stack Overflow or by Cortopasta
Published on 2010-05-05T18:28:16Z Indexed on 2010/05/05 18:38 UTC
Read the original article Hit count: 254

Filed under:
|
|
|
|

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?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript