RE: How do you "detect the browsers at the server"?
by "Andre L Crane" <andre(at)terracrane.com>
|
Date: |
Thu, 13 Dec 2001 13:25:59 -0500 |
To: |
<hwg-basics(at)hwg.org> |
In-Reply-To: |
nahro |
|
todo: View
Thread,
Original
|
|
It is easy.
Frighteningly easy, especially with ASP.
There is a COM component that is installed with IIS that is called the
"browscap" component. There is also a file called the browscap.ini file on
the server that contains a list of most browser strings out there (it's best
to find a more complete browscap.ini file than the one that MS ships with
IIS), which the browscap component uses to decide which browser is being
used. It only takes a few lines of code to check the browser then provide
content based on which browser the user has.
-----Original Message-----
From: owner-hwg-basics(at)hwg.org [mailto:owner-hwg-basics(at)hwg.org]On
Behalf Of Rick Jones
Sent: Thursday, December 13, 2001 12:38 PM
To: hwg-basics(at)hwg.org
Subject: How do you "detect the browsers at the server"?
Sounds easy enough, but I'm not convinced.
-----Original Message-----
From: Darrell [mailto:darrell(at)webctr.com]
Sent: Wednesday, December 12, 2001 9:21 PM
To: hwg-basics(at)hwg.org
Subject: RE: Hey, hey, hey
Easy!
You detect the browsers at the server, and deliver one of 2 templates: A
4.0
one for older software, and an XHTML Strict for newer. Note that this
means
2 copies of your site's template, but the coding is easy and the results
seem (IMHO) more reliable than trying to make everyone happy with just
one
layout.
D
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA