The header: HTTP_USER_AGENT
The regex: MSIE (\d+)\.

browser_is_old = int(group(1)) <= 8

The challenge is testing - my XP VM updated IE to 9 before I could stop it
:)


On Fri, Jan 10, 2014 at 9:00 AM, Andrea Aime
<andrea.a...@geo-solutions.it>wrote:

> On Fri, Jan 10, 2014 at 4:58 PM, Justin Deoliveira <
> jdeol...@boundlessgeo.com> wrote:
>
>> I too like the idea of browser identification and switching between new
>> and old. For the old I think it would be good to add some notice that says
>> "your browser sucks" ... er i mean "Your browser is currently not supported
>> ..., blah blah"
>>
>
> Ok, so how do we detect the unsupported browsers?
> I've found this library to detect the user agents, but it's kinda big, two
> jars, around 300kb I believe.
>
> Maybe we can have a blacklist of specific strings instead? Suggestions?
>
> Cheers
> Andrea
>
> --
> == Our support, Your Success! Visit http://opensdi.geo-solutions.it for
> more information ==
>
> Ing. Andrea Aime
> @geowolf
> Technical Lead
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39  339 8844549
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
>
> ------------------------------------------------------------------------------
> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud For
> Critical Workloads, Development Environments & Everything In Between.
> Get a Quote or Start a Free Trial Today.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
> _______________________________________________
> Geoserver-devel mailing list
> Geoserver-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>
>


-- 
Ian Schneider
Software Engineer | Boundless
ischnei...@boundlessgeo.com
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to