Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Mozilla's javascript console show the following warning while IEdoesn't show it?

Reply
Thread Tools

Mozilla's javascript console show the following warning while IEdoesn't show it?

 
 
nick
Guest
Posts: n/a
 
      06-14-2004
The warning message is:

Warning: The stylesheet http://www.jewelrybyponce.com/popup/popup.css
was loaded as CSS even though its MIME type, "application/octet-stream",
is not "text/css".

What cause the problem? There is not "application/octet-stream" in the
html or css code...
 
Reply With Quote
 
 
 
 
Bernard
Guest
Posts: n/a
 
      06-14-2004
Hi Nick,

that is because the web server that served the style sheet file does
not have a mime type "text/css" configured.

Such a configuration would enable the web server to set this mime type
header depending on the file extension of the file.

Bernard


nick <(E-Mail Removed)> wrote:

>The warning message is:
>
>Warning: The stylesheet http://www.jewelrybyponce.com/popup/popup.css
>was loaded as CSS even though its MIME type, "application/octet-stream",
>is not "text/css".
>
>What cause the problem? There is not "application/octet-stream" in the
>html or css code...


 
Reply With Quote
 
 
 
 
nick
Guest
Posts: n/a
 
      06-15-2004
Bernard wrote:

> Hi Nick,
>
> that is because the web server that served the style sheet file does
> not have a mime type "text/css" configured.
>
> Such a configuration would enable the web server to set this mime type
> header depending on the file extension of the file.
>
> Bernard
>
>
> nick <(E-Mail Removed)> wrote:
>
>
>>The warning message is:
>>
>>Warning: The stylesheet http://www.jewelrybyponce.com/popup/popup.css
>>was loaded as CSS even though its MIME type, "application/octet-stream",
>>is not "text/css".
>>
>>What cause the problem? There is not "application/octet-stream" in the
>>html or css code...

>
>

Thanks, looks the script works. any serious problem if don't config it?
 
Reply With Quote
 
Grant Wagner
Guest
Posts: n/a
 
      06-15-2004
nick wrote:

> Bernard wrote:
>
> > Hi Nick,
> >
> > that is because the web server that served the style sheet file does
> > not have a mime type "text/css" configured.
> >
> > Such a configuration would enable the web server to set this mime type
> > header depending on the file extension of the file.
> >
> > Bernard
> >
> >
> > nick <(E-Mail Removed)> wrote:
> >
> >
> >>The warning message is:
> >>
> >>Warning: The stylesheet http://www.jewelrybyponce.com/popup/popup.css
> >>was loaded as CSS even though its MIME type, "application/octet-stream",
> >>is not "text/css".
> >>
> >>What cause the problem? There is not "application/octet-stream" in the
> >>html or css code...

> >
> >

> Thanks, looks the script works. any serious problem if don't config it?


The MIME type sent by your server to a browser for files ending in .CSS won't
affect your script. However, everyone who visits your Web site will get
warnings in Gecko-based browsers everytime you include a file that ends in
..CSS on a Web page. If you have control over the server, fix it. For example,
to fix it in apache, ensure:

"text/css css"

exists in "mime.types" (should be found in the same directory as httpd.conf).
Of course, you also have to ensure apache is using mod_mime and httpd.conf is
using the right mime.types:

<IfModule mod_mime.c>
# your path will/may vary
TypesConfig /usr/local/etc/apache/mime.types
</IfModule>

Pretty much every reasonable default build of apache should come with this
stuff configured as shown above, unless you somehow managed to build apache
without mod_mime or you moved or edited mime.types.

To add/modify MIME types in IIS 4 and 5, this URL seems to provide the
details:

<url:
http://www.microsoft.com/technet/pro...y/mimeiis.mspx
/>

--
| Grant Wagner <(E-Mail Removed)>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: When running Ant on command line, how to not-show its WARNING messages and only show ERROR message? Roedy Green Java 5 12-13-2011 05:49 PM
Re: When running Ant on command line, how to not-show its WARNING messages and only show ERROR message? John B. Matthews Java 0 12-09-2011 05:19 PM
The Web server reported the following error when attempting to create or open the Web project located at the following URL: 'http://localhost/822319ev1'. 'HTTP/1.1 500 Internal Server Error'. chanmm ASP .Net 2 09-07-2010 07:37 AM
I can't get RLock to work (warning, the following code is prettylong) grocery_stocker Python 5 04-11-2009 10:53 AM
RE: The Web server reported the following error when attempting to create or open the Web project located at the following URL: <URL> =?Utf-8?B?VHJldm9yIEJlbmVkaWN0IFI=?= ASP .Net 0 06-07-2004 07:36 AM



Advertisments