[Seaside] Detecting mobile devices

Boris Popov, DeepCove Labs boris at deepcovelabs.com
Tue Sep 27 20:52:32 UTC 2011


Have you considered feature-detection instead of browser-detection, i.e.
using http://www.modernizr.com ?


-----Original Message-----
From: seaside-bounces at lists.squeakfoundation.org
[mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of Nevin
Sent: Tuesday, September 27, 2011 4:44 PM
To: Seaside - general discussion
Subject: [Seaside] Detecting mobile devices

If you Google this topic, you will find sample code for this, but of
course it would need to be adapted to Seaside.

Probably not too difficult of a task, but before doing so, I thought I'd
ask if anybody had some Seaside code that would detect mobile devices.

Yes, this is browser sniffing, which historically hasn't been super
But a lot of sites are now auto-detecting if, say, you are on an iPhone,
or an Android phone, and automatically giving the user a mobile version
of the website.  It's getting to be pretty common.

So, does anybody have any (reasonably reliable) Seaside code for
detecting mobile devices?


seaside mailing list
seaside at lists.squeakfoundation.org

More information about the seaside mailing list