[Seaside] Detecting mobile devices

Nevin Pratt nevin at bountifulbaby.com
Tue Sep 27 21:03:45 UTC 2011


I don't think I need anything complex.  Just simple "mobile phone" detection.

Also, I'm running Seaside 2.8, on Squeak 3.9.  Old stuff.  And I'm not 
upgrading.  Don't perceive a need to.

Nevin


> Nevin,
>
> Have you considered feature-detection instead of browser-detection, i.e.
> using http://www.modernizr.com ?
>
> -Boris
>
>
> -----Original Message-----
> From: seaside-bounces at lists.squeakfoundation.org
> [mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of Nevin
> Pratt
> 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
> 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
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>



More information about the seaside mailing list