By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,993 Members | 1,984 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,993 IT Pros & Developers. It's quick & easy.

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

P: n/a
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...
Jul 23 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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 <nb***@removethis.hotmail.com> 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...


Jul 23 '05 #2

P: n/a
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 <nb***@removethis.hotmail.com> 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?
Jul 23 '05 #3

P: n/a
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 <nb***@removethis.hotmail.com> 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 <gw*****@agricoreunited.com>

* 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
Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.