[Zope] Test for browser version using dtml-if?

Tino Wildenhain tino@wildenhain.de
Thu, 03 Oct 2002 19:21:16 +0200


Hi AM,

--On Mittwoch, 2. Oktober 2002 18:20 -0700 AM <list_subscriber@neurobs.com> 
wrote:

> Did you try using :
>
> REQUEST.HTTP_USER_AGENT
>
> I use a simple one like this:
>
> if container.REQUEST.HTTP_USER_AGENT.find('Netscape') > -1: return 'NS'
> else: return 'IE'

Very clever ;) Whats with Opera, Lynx, Links, Mozilla, Konqueror,
Amaya, Nokia6310, ... ? :-)
>
> hth
> AM