[Zope] Client Detection in Zope

Michel Pelletier michel@digicool.com
Wed, 14 Jul 1999 11:19:05 -0400


> -----Original Message-----
> From: Martin N. Hudson [mailto:MHudson@DevIS.com]
> Sent: Wednesday, July 14, 1999 9:57 AM
> To: 'Zope@Zope.org'
> Subject: [Zope] Client Detection in Zope
> 
> 
> I am a digest subscriber and have enjoyed the list very much.  Great
> job!
> 
> I am currently trying to figure out how I can use the powerful DTML
> 'macro'ing capability to build pages dependent on the browser and its
> services (plug-ins, Java, JavaScript).  Is there a way to do this from
> the server side that would give me this information or am I 
> relegated to
> the client side detection?  Thanks in advance for your assistance.
> Please reply directly to me as the digest isn't always immediate.
> Thanks,
> 

Try:

<!--#var HTTP_USER_AGENT-->

this in conjuction with the #if tag, gives you browser conditional HTML:

<!--#if "HTTP_USER_AGENT[7:] == 'Mozilla'"-->
  <h1><blink>Isn't Netscape GREAT!!!</blink></h1>
<!--#/if-->

-Michel

> Martin Hudson
> Development InfoStructure
> 1101 N. Highland St., Ste. 200
> Arlington, VA 22201
> Phone: (703) 525-6485
> Fax: (703) 525-6029
> http://www.DevIS.com
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
> 
> (For developer-specific issues, use the companion list,
> zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
>