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

Discussion in 'Javascript' started by nick, Jun 14, 2004.

  1. nick

    nick Guest

    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...
    nick, Jun 14, 2004
    #1
    1. Advertising

  2. nick

    Bernard Guest

    Re: Mozilla's javascript console show the following warning while IE doesn't show it?

    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 <> 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...
    Bernard, Jun 14, 2004
    #2
    1. Advertising

  3. nick

    nick Guest

    Re: Mozilla's javascript console show the following warning whileIE doesn't show it?

    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 <> 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?
    nick, Jun 15, 2004
    #3
  4. nick

    Grant Wagner Guest

    Re: Mozilla's javascript console show the following warning whileIEdoesn't show it?

    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 <> 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/pr...ogies/iis/maintain/featusability/mimeiis.mspx
    />

    --
    | Grant Wagner <>

    * Client-side Javascript and Netscape 4 DOM Reference available at:
    *
    http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/frames.html

    * Internet Explorer DOM Reference available at:
    *
    http://msdn.microsoft.com/workshop/author/dhtml/reference/dhtml_reference_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-developer/upgrade_2.html
    Grant Wagner, Jun 15, 2004
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. grocery_stocker
    Replies:
    5
    Views:
    283
    Moriaantje
    Apr 11, 2009
  2. John B. Matthews
    Replies:
    0
    Views:
    752
    John B. Matthews
    Dec 9, 2011
  3. Roedy Green
    Replies:
    5
    Views:
    2,296
    Gene Wirchenko
    Dec 13, 2011
  4. Derek_Bennett

    how to write text to Mozilla JavaScript Console

    Derek_Bennett, Jan 28, 2004, in forum: Javascript
    Replies:
    3
    Views:
    218
    Martin Honnen
    Jan 30, 2004
  5. Ux

    Mozilla JavaScript Console

    Ux, Jun 28, 2004, in forum: Javascript
    Replies:
    2
    Views:
    78
Loading...

Share This Page