<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><span>I used the following code for a demo (VW 7.7.1 + Seaside 3.0).&nbsp;</span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><span>The redirection was from a root dispatcher application to separate Seaside applications in the same image.</span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><span><br></span></div><div><span><font class="Apple-style-span" size="2"><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>| string |&nbsp;</div></font><span class="Apple-style-span" style="font-size: 13px; "><span class="Apple-tab-span" style="white-space:pre">        </span>string := self requestContext request userAgent.</span><font class="Apple-style-span" size="2"><div><span class="Apple-tab-span"
 style="white-space:pre">        </span>(string includesSubString: 'iPad') ifTrue: [^self requestContext redirectTo: self tabletURL].</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>(string includesSubString: 'iPhone') ifTrue: [^self requestContext redirectTo: self phoneURL].</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>(string includesSubString: 'webOS') ifTrue: [^self requestContext redirectTo: self tabletURL].</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>^self requestContext redirectTo: self portalURL<br></div><div><br></div><div>Bob N.</div></font></span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><font size="2" face="Arial"><hr size="1"><b><span
 style="font-weight:bold;">From:</span></b> Nevin Pratt &lt;nevin@bountifulbaby.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> Seaside - general discussion &lt;seaside@lists.squeakfoundation.org&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Tuesday, September 27, 2011 4:44:25 PM<br><b><span style="font-weight: bold;">Subject:</span></b> [Seaside] Detecting mobile devices<br></font><br>If you Google this topic, you will find sample code for this, but of course it would need to be adapted to Seaside.<br><br>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.<br><br>Yes, this is browser sniffing, which historically hasn't been super reliable.&nbsp; 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.&nbsp; It's getting to be pretty
 common.<br><br>So, does anybody have any (reasonably reliable) Seaside code for detecting mobile devices?<br><br>Nevin<br><br>_______________________________________________<br>seaside mailing list<br><a ymailto="mailto:seaside@lists.squeakfoundation.org" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br><br><br></div></div></div></body></html>