views:

573

answers:

2

Hi All

In FF and all, my javascript works fine. But in Chrome it gives this message: "Resource interpreted as script but transferred with MIME type text/plain."

I have checked all the script tags and they all have the MIME type="text/javascript". It even says so with jquery and jquery ui. What's up with Chrome?

What's the problem and the fix for this? Is it something I have to change in the 'options' of the browser or is it from the server, or do I have to tweak my code?

I've been trying to solve it for 2 weeks and I can't find any solution. Please advise me on this.

+1  A: 

It means that the server is sending an Javascript HTTP response with content-type:text/plain.

You should configure the server to send the Javascript responses with content-type:application/x-javascript.

SLaks
I'm using Weblogic Server 11g, but I don't know where I can configure the MIME in it. Please, can you show me the way?
Shaoz
I have no idea; Google it. Also, look at the requests in Fiddler.
SLaks
@SLaKs: Thanks for your help, you've given me a head start.
Shaoz
A: 

how to set content-type:application/x-javascript???

moeen
In what server environment? Also, this should be its own question. http://stackoverflow.com/faq
Jason Hall

related questions