[Seaside] Detecting mobile devices

Nevin Pratt nevin at bountifulbaby.com
Tue Sep 27 20:44:25 UTC 2011


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 reliable.  
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?

Nevin



More information about the seaside mailing list