<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: iPhone &amp; iPod Detection Using&#160;JavaScript</title> <atom:link href="http://davidwalsh.name/detect-iphone/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/detect-iphone</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Tue, 22 May 2012 05:31:04 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>By: John</title><link>http://davidwalsh.name/detect-iphone#comment-31191</link> <dc:creator>John</dc:creator> <pubDate>Thu, 22 Mar 2012 17:31:30 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1462#comment-31191</guid> <description>For most changes, I think just detecting the screen width and swapping out styles accordingly will do what you want.  After all, what you&#039;re mostly concerned about is simplifying your page for a smaller screen.  Browser sniffing has been a bad idea since 1998 and the same reasons apply now to mobile that applied then, and will lead to the same response - browsers spoofing the user agent string.</description> <content:encoded><![CDATA[<p>For most changes, I think just detecting the screen width and swapping out styles accordingly will do what you want.  After all, what you&#8217;re mostly concerned about is simplifying your page for a smaller screen.  Browser sniffing has been a bad idea since 1998 and the same reasons apply now to mobile that applied then, and will lead to the same response &#8211; browsers spoofing the user agent string.</p> ]]></content:encoded> </item> <item><title>By: Ra</title><link>http://davidwalsh.name/detect-iphone#comment-30195</link> <dc:creator>Ra</dc:creator> <pubDate>Thu, 23 Feb 2012 16:28:33 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1462#comment-30195</guid> <description>I&#039;m still a bit new with all this.Which .php file would one place the .php version of this code? PhPinfo.php?</description> <content:encoded><![CDATA[<p>I&#8217;m still a bit new with all this.</p><p>Which .php file would one place the .php version of this code? PhPinfo.php?</p> ]]></content:encoded> </item> <item><title>By: Kiss</title><link>http://davidwalsh.name/detect-iphone#comment-29170</link> <dc:creator>Kiss</dc:creator> <pubDate>Sun, 12 Feb 2012 11:15:36 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1462#comment-29170</guid> <description>Hey, i found to http://tinytop.mobi best detector real user agent script in the world. Awsome isn&#039;it? :o</description> <content:encoded><![CDATA[<p>Hey, i found to <a
href="http://tinytop.mobi" rel="nofollow">http://tinytop.mobi</a> best detector real user agent script in the world. Awsome isn&#8217;it? :o</p> ]]></content:encoded> </item> <item><title>By: Brandon Crooks</title><link>http://davidwalsh.name/detect-iphone#comment-27503</link> <dc:creator>Brandon Crooks</dc:creator> <pubDate>Tue, 08 Nov 2011 17:12:49 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1462#comment-27503</guid> <description>I agree. Sometimes the water&#039;ed down version of a site dramatically reduces usability. I&#039;m pretty sure you can implement a link to redirect to a page without mobile redirection.</description> <content:encoded><![CDATA[<p>I agree. Sometimes the water&#8217;ed down version of a site dramatically reduces usability. I&#8217;m pretty sure you can implement a link to redirect to a page without mobile redirection.</p> ]]></content:encoded> </item> <item><title>By: chris</title><link>http://davidwalsh.name/detect-iphone#comment-27329</link> <dc:creator>chris</dc:creator> <pubDate>Sun, 23 Oct 2011 11:03:06 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1462#comment-27329</guid> <description>I&#039;ve searched for hours for different ways of detecting browsers:
As a designer with limited knowledge of javascript and php, this has been the only example I&#039;ve found that makes sense and actually works. Thank you for your rare ability to explain code that i now understand and actually works for me. (I dont care if php is better, I cant get it to work and is therefore useless to me, if you want to get high and mighty, with php, write an understandable tutorial and then maybe non geeks will use it)</description> <content:encoded><![CDATA[<p>I&#8217;ve searched for hours for different ways of detecting browsers:<br
/> As a designer with limited knowledge of javascript and php, this has been the only example I&#8217;ve found that makes sense and actually works. Thank you for your rare ability to explain code that i now understand and actually works for me. (I dont care if php is better, I cant get it to work and is therefore useless to me, if you want to get high and mighty, with php, write an understandable tutorial and then maybe non geeks will use it)</p> ]]></content:encoded> </item> <item><title>By: Amber Mejias</title><link>http://davidwalsh.name/detect-iphone#comment-27323</link> <dc:creator>Amber Mejias</dc:creator> <pubDate>Fri, 21 Oct 2011 17:11:26 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1462#comment-27323</guid> <description>Thanks a million. It took me two days just to find this fix. :o)</description> <content:encoded><![CDATA[<p>Thanks a million. It took me two days just to find this fix. :o)</p> ]]></content:encoded> </item> <item><title>By: Okto</title><link>http://davidwalsh.name/detect-iphone#comment-27190</link> <dc:creator>Okto</dc:creator> <pubDate>Sat, 08 Oct 2011 20:52:51 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1462#comment-27190</guid> <description>I prefer css media, but this snippet help me to much for hiding toolbar in IOS, and not in the browsers users, preventing the user lose the point of the site when refreshing or sending a form.&lt;code&gt;
if((navigator.userAgent.match(/iPhone/i)) &#124;&#124; (navigator.userAgent.match(/iPod/i))) { //if IOS do this things:
window.addEventListener(&#039;load&#039;, function() {
setTimeout(scrollTo, 0, 0, 1);
}, false);
}
&lt;/code&gt;</description> <content:encoded><![CDATA[<p>I prefer css media, but this snippet help me to much for hiding toolbar in IOS, and not in the browsers users, preventing the user lose the point of the site when refreshing or sending a form.</p><p><code><br
/> if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) { //if IOS do this things:<br
/> window.addEventListener('load', function() {<br
/> setTimeout(scrollTo, 0, 0, 1);<br
/> }, false);<br
/> }<br
/> </code></p> ]]></content:encoded> </item> <item><title>By: Okto</title><link>http://davidwalsh.name/detect-iphone#comment-27189</link> <dc:creator>Okto</dc:creator> <pubDate>Sat, 08 Oct 2011 20:51:35 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1462#comment-27189</guid> <description>I prefer css media, but this snippet help me to much for hiding toolbar in IOS, and not in the browsers users, preventing the user lose the point of the site when refreshing or sending a form.if((navigator.userAgent.match(/iPhone/i)) &#124;&#124; (navigator.userAgent.match(/iPod/i))) { //if IOS do this things:
window.addEventListener(&#039;load&#039;, function() {
setTimeout(scrollTo, 0, 0, 1);
}, false);
}</description> <content:encoded><![CDATA[<p>I prefer css media, but this snippet help me to much for hiding toolbar in IOS, and not in the browsers users, preventing the user lose the point of the site when refreshing or sending a form.</p><p>if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) { //if IOS do this things:<br
/> window.addEventListener(&#8216;load&#8217;, function() {<br
/> setTimeout(scrollTo, 0, 0, 1);<br
/> }, false);<br
/> }</p> ]]></content:encoded> </item> <item><title>By: Bernie</title><link>http://davidwalsh.name/detect-iphone#comment-26897</link> <dc:creator>Bernie</dc:creator> <pubDate>Thu, 15 Sep 2011 20:44:40 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1462#comment-26897</guid> <description>Hello David,why in all mobile site their domain starts with &quot;m&quot; like m.mysite.com is that only a subdomain or once the site run in mobile phones the &quot;m&quot; will automatically replace the www.Thanks</description> <content:encoded><![CDATA[<p>Hello David,</p><p>why in all mobile site their domain starts with &#8220;m&#8221; like m.mysite.com is that only a subdomain or once the site run in mobile phones the &#8220;m&#8221; will automatically replace the www.</p><p>Thanks</p> ]]></content:encoded> </item> <item><title>By: David</title><link>http://davidwalsh.name/detect-iphone#comment-26348</link> <dc:creator>David</dc:creator> <pubDate>Thu, 04 Aug 2011 15:07:10 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1462#comment-26348</guid> <description>Wow! It works perfectly!</description> <content:encoded><![CDATA[<p>Wow! It works perfectly!</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 3/7 queries in 0.007 seconds using disk: basic
Object Caching 805/805 objects using disk: basic

Served from: davidwalsh.name @ 2012-05-22 04:29:17 -->
