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

Michael Fischer v. Mollard mfvm@businessvillage.de
Fri, 04 Oct 2002 10:10:54 +0200


Tino Wildenhain wrote:

> 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, ... ? :-)

Even worse: What about the difference between NS4 on the one hand and 
NS6 and NS7 on the other hand?

    MFvM