473,805 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

The warning message is:

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

What cause the problem? There is not "applicatio n/octet-stream" in the
html or css code...
Jul 23 '05 #1
3 1900
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***@removeth is.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, "applicatio n/octet-stream",
is not "text/css".

What cause the problem? There is not "applicatio n/octet-stream" in the
html or css code...


Jul 23 '05 #2
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***@removeth is.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, "applicatio n/octet-stream",
is not "text/css".

What cause the problem? There is not "applicatio n/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
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***@removeth is.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, "applicatio n/octet-stream",
is not "text/css".

What cause the problem? There is not "applicatio n/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*****@agrico reunited.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
7311
by: Peter Bremer | last post by:
Hi all, I've written this little piece of code, which doesn't seem to work in Mozilla 1.5. I haven't tried it on other Gecko browsers, but I've found some indication that Netscape 6+ has the same problem. Internet Explorer 6 and Opera 7 have no problems with it. <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN' 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'> <script>document.write (window.history.length);</script>
10
3610
by: tony kulik | last post by:
This code works fine in ie and opera but not at all in Mozilla. Anybody got a clue as to how to get it right? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <script language="JavaScript" type="text/javascript"> function show(that) { if (box.style.visibility=='hidden') { that.style.visibility = 'visible'}; }
12
1379
by: Bart | last post by:
Hi there, I've got a strange problem. Used to use IE. Now switched to Mozilla (1.4). This works fine in IE but produces nothing (not even an errormessage) in Mozilla:
3
2719
by: Derek_Bennett | last post by:
I would like to find out how to write out messages to the Mozilla JavaScript Console. This would allow me to have a client-side record of execution which would be ideal in debugging end-user problems. I am looking for something like javascript:mozilla.jsconsole.messages.write("some debug string");
3
2096
by: kj | last post by:
This problem is driving me nuts. The code at the end of this post below works fine with IE, but fails with Mozilla. You can see it in action at http://tinyurl.com/2jvo3 With Mozilla 1.4 and 1.6, the function msg works fine if it's installed as an onclick handler for the button, but fails as an onload handler for the page. The error is "console has no properties", and is triggered by the line.
6
3620
by: LRW | last post by:
I have a Javascript that makes a tablerow visible ot invisible, that works fine in InternetExplorer, but in Mozilla it's unresponsive and I get the following Javascript Console error: Error: itemeditrow is not defined Source File: editform.php Line: 45 Below is the Javascript, and a section of the HTML for that tablerow. I don't get it. It looks defined to me. What am I missing?
3
8345
by: Greg | last post by:
Javascript Folks, I am relatively new to javascript and am working on a script where I want to utilizes a couple of iframes and format text in them. I have run into a problem with getting the following code to work in mozilla. It seems to work in ie. Eventually I will be replacing the H1 node with a table until I can get the H1 node to show up in mozilla there is not much point.
6
4789
by: Erik Steffl | last post by:
I am trying to create a simple custom web spider using mozilla and javascript, the basic functionality is to open a website and then manipulate it using DOM (possibly opening links etc.). it seems like pretty easy task to do, the only pr0oblem is that I can't figure out how to wait for the website to load - I use mozilla security settings to be able to open the window and mainpulate it: var w = window.open("http://google.com", "google...
10
1997
by: ashkaan57 | last post by:
The web site is in two languages, one in English and the other in Farsi (Persian) which is a right-to-left language. So, I used two stylesheets, with the same info, and changed the right and left properties (i.e. the left-margin:20px in English version changed to right-margin:20px in farsi version). It works fine in IE in both languages. In Mozilla, the English version works fine but the Farsi version looks crooked. the menu and everything...
0
10614
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10363
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10369
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7649
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6876
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4327
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3847
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.