From: Swifty on
I know that detecting the browser is frowned upon here, but I have a
need to identify specifically Internet Explorer 6.

My company ships all employees a PC containing IE6, and we are
discouraged from upgrading it. We can (and many do) install other
browsers, but some corporate applications are 100% dependant on IE6.

However, next year (about halfway through), we are going to force the
installation of Firefox onto all systems, and it is speculated that it
may become the default browser as well. Maybe not at the same time.

I'd like to update my webpages with a "This page best viewed with almost
anything except Internet Explorer 6" message, to encourage my users to
try something else (probably Firefox). This way, I'll be able to shake
out any bugs before the "big bang" day�

Of course, I test all my pages against Firefox (and Opera, Safari,
Chrome) but my users are far better at finding my bugs than I am.

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
From: SAM on
Le 10/31/09 9:43 AM, Swifty a �crit :
>
> I'd like to update my webpages with a "This page best viewed with almost
> anything except Internet Explorer 6" message, to encourage my users to
> try something else (probably Firefox).

<!--[if IE]>
<h1 style="color:red;text-align:center">
This page best viewed with almost anything except Internet Explorer
</h1>
<![endif]-->

or :

<!--[if IE 6]>
<div style="color:red;border:double 4px;text-align:center">
<h1>
This page best viewed with almost anything except Internet Explorer 6
</h1>
<p>
Download and install <a href="www.mozilla.com/firefox/">FireFox</a>
</p>
</div>
<![endif]-->

--
sm
From: Lasse Reichstein Nielsen on
Swifty <steve.j.swift(a)gmail.com> writes:

> I know that detecting the browser is frowned upon here, but I have a
> need to identify specifically Internet Explorer 6.

The best way is conditional comments:
<!--[if IE 6]>
something here that only IE 6 treats as a non-comment.
<![endif]-->

See <URL:http://msdn.microsoft.com/en-us/library/ms537512(VS.85).aspx>

> My company ships all employees a PC containing IE6, and we are
> discouraged from upgrading it. We can (and many do) install other
> browsers, but some corporate applications are 100% dependant on IE6.

I thought they would have fixed that by now. :(

> However, next year (about halfway through), we are going to force the
> installation of Firefox onto all systems, and it is speculated that it
> may become the default browser as well. Maybe not at the same time.

About time! Well, as long as they don't start using proprietart
Firefox features instead. Writing to standards should make things
work in all modern browsers.

....
> Of course, I test all my pages against Firefox (and Opera, Safari,
> Chrome) but my users are far better at finding my bugs than I am.

It should be possible to have more than one IE installed at the same
time (with some quirkyness).
See, e.g., <URL:http://tredosoft.com/IE7_standalone> (although it's
probably outdated by now). So you can test even more browsers :)

/L
--
Lasse Reichstein Holst Nielsen
'Javascript frameworks is a disruptive technology'

From: Thomas 'PointedEars' Lahn on
Swifty wrote:

> I know that detecting the browser is frowned upon here, but I have a
> need to identify specifically Internet Explorer 6.
> [...]
> I'd like to update my webpages with a "This page best viewed with almost
> anything except Internet Explorer 6" message, to encourage my users to
> try something else (probably Firefox). This way, I'll be able to shake
> out any bugs before the "big bang" day…
>
> Of course, I test all my pages against Firefox (and Opera, Safari,
> Chrome) but my users are far better at finding my bugs than I am.

Conditional Comments are your best bet, not scripting.


PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.)
From: Thomas 'PointedEars' Lahn on
Lasse Reichstein Nielsen wrote:

> It should be possible to have more than one IE installed at the same
> time (with some quirkyness).

It is.

> See, e.g., <URL:http://tredosoft.com/IE7_standalone> (although it's
> probably outdated by now).

<http://my-debugbar.com/wiki/IETester/HomePage>


PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann