473,396 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

detecting firefox

We are trying to get our site to be 100% compatable in firefox also, but
right now it is a mess in firefox (CSS formatting problems) is there anyway
we can detect on page load the browser as that and if it is display a alert
that says we are working on the site and until then use IE for the best
results? thanks or even do this as a label on the page so we can at least
say it.
Nov 19 '05 #1
4 2398
> We are trying to get our site to be 100% compatable in firefox also, but
right now it is a mess in firefox (CSS formatting problems)
That likely means your CSS is bad. Firefox is perhaps the most compliant
browser out there. Make your CSS work for Firefox, then fix for IE and the
rest with hacks.
is there anyway
we can detect on page load the browser as that and if it is display a alert that says we are working on the site and until then use IE for the best
results?


You could, but that would make the site look rather incompetant. Again, IE
is your problem here, not Firefox.

-Darrel
Nov 19 '05 #2
CSS validates fine using the W3C CSS validator, and the company that
designed the CSS for us for the site claimes its W3C complient... so until
we get word back from them on it, need a message to notify the users on this
problem
"darrel" <no*****@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
We are trying to get our site to be 100% compatable in firefox also, but
right now it is a mess in firefox (CSS formatting problems)


That likely means your CSS is bad. Firefox is perhaps the most compliant
browser out there. Make your CSS work for Firefox, then fix for IE and the
rest with hacks.
is there anyway
we can detect on page load the browser as that and if it is display a

alert
that says we are working on the site and until then use IE for the best
results?


You could, but that would make the site look rather incompetant. Again, IE
is your problem here, not Firefox.

-Darrel

Nov 19 '05 #3
"Brian Henry" <br**********@newsgroups.nospam> wrote in message
news:Or**************@TK2MSFTNGP10.phx.gbl...
CSS validates fine using the W3C CSS validator, and the company that
designed the CSS for us for the site claimes its W3C complient... so until
we get word back from them on it, need a message to notify the users on
this problem


Take Darrel's advice.

But, it's easy enough to detect FireFox using client-side JavaScript.

<script>document.write(navigator.userAgent);</script>

should display something like:

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803
Firefox/0.9.3
depending on your O/S and version of Firefox.
Nov 19 '05 #4
> CSS validates fine using the W3C CSS validator

Valid and 'correct' are two different things.

The issue is that Firefox, for the most part, renders CSS the closest to the
standards. IE fails in numerous areas.

So they may have written valid CSS and Markup but did so only targetting IE.
Which means that there are mistakes in the layout that just happen to look
'right' in IE do to IE's faults.
and the company that
designed the CSS for us for the site claimes its W3C complient
Got a link? if they adhered to the standards, then Firefox shouldn't be
causing you any grief.

.... so until we get word back from them on it, need a message to notify the users on this problem


Here's an example for detection:

http://www.ericgiguere.com/articles/...t-firefox.html

Basically, you are trusting the response headers and grabbing the browser
information from there.

-Darrel
Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Sharon | last post by:
Can I use request.servervariables("HTTP_USER_AGENT") to determine if the user has Firefox or Internet Explorer? Is the return string differentiated enough? Thanks for any input.
7
by: Michael Crute | last post by:
I did a search and basically came up with nothing for this question, but if I missed the answer, I apologize in advance, please just point me in the right direction. OK, I am using a JavaScript...
1
by: Mark Szlazak | last post by:
Is there a way to detect if an textarea onscroll event is working in Firefox (or Mozilla). I know that there is an onscroll event bubbling bug with current vesions of these browsers so I want to...
1
by: Oenone | last post by:
We have a little piece of JavaScript in one of our client's application which automatically sets the input focus to the first control on the HTML form. This works very nicely, except for in one...
2
by: Siah | last post by:
Hi, It's a mess. After an hour of hacking the closest I could get to detecting the current value (Not key, but value) of select statement that works both in Firefox and IE is : ...
7
by: jab3 | last post by:
Hello. I'm wondering if someone can answer something I'm sure has been answered a thousand times before. I am apparently just too dumb to find the answer. :) I've found information about the...
3
by: regtrashcan | last post by:
I have a webpage that detects whether Shockwave Player is installed and the version number. The javascript/vbscript that I use has worked fine until the latest release of the Shockwave Player. I am...
79
by: VK | last post by:
I wandering about the common proctice of some UA's producers to spoof the UA string to pretend to be another browser (most often IE). Shouldn't it be considered as a trademark violation of the...
15
by: RobG | last post by:
When using createEvent, an eventType parameter must be provided as an argument. This can be one of those specified in DOM 2 or 3 Events, or it might be a proprietary eventType. My problem is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.