RE: [Zope] Getting client browser type
Hi there I have thought of that, but doesn't those change with every new release of a specific browser? I guess one will just have to keep up to date with the browser type strings for every new browser launched :( Thanks anyway Etienne -----Original Message----- From: Chris Withers [mailto:chrisw@nipltd.com] Sent: Monday, March 05, 2001 3:13 PM To: Etienne Labuschagne Cc: Zope user list (E-mail) Subject: Re: [Zope] Getting client browser type Etienne Labuschagne wrote:
Hi there
How do I get the client's browser type (IE, Navigator, etc). I know how
to
do it in JavaScript, but does not know how to communicate this with Zope.
Maybe REQUEST['HTTP_USER_AGENT'} would be of help? cheers, Chris
Etienne Labuschagne wrote:
Hi there
I have thought of that, but doesn't those change with every new release of a specific browser? I guess one will just have to keep up to date with the browser type strings for every new browser launched :(
Try searching the web for browscap.ini - The browser capablilities file.
I have thought of that, but doesn't those change with every new release of a specific browser? I guess one will just have to keep up to date with the browser type strings for every new browser launched :(
Not exactly, you'll notice that some part are fixed, for example the version number can be used quite safelly. You can the use "if bigger than 4, I have a recent browser" or something like that, assuming that all 4+ browsers will work with that particular page. It's the way most js browser detection script work. Philippe
Hi Etienne, Etienne Labuschagne wrote:
Hi there
I have thought of that, but doesn't those change with every new release of a specific browser? I guess one will just have to keep up to date with the browser type strings for every new browser launched :(
Thanks anyway Etienne
For statistical reasons it is good enough ;) But dont always believe what you 're getting :-) The question is - what are you about to do with the data? Please dont this information for such sites that tell you: "Go away and get this ... specific browser!" Did you ask why almost all browsers nowadays call themself "Mozilla" ? ;) Regards Tino
participants (4)
-
Etienne Labuschagne -
Ivan Cornell -
Philippe J -
Tino Wildenhain