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

AM list_subscriber@neurobs.com
Tue, 08 Oct 2002 16:28:56 -0700


As I said a simple one. I dont need more than that...
Of course in the case of Opera... well if the user sets it to send out 
an IE or NS string so be it.

-AM

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

-- 
==================================================================
 Aseem Mohanty							   
 Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 
 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231		  	
==================================================================								  	
 "I saw `cout' being shifted "Hello world" times to the left and  
  stopped right there!!"                        -- Steve Gonedes  
==================================================================