<?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: iPad Detection Using JavaScript or&#160;PHP</title> <atom:link href="http://davidwalsh.name/detect-ipad/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/detect-ipad</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: Sergej Jevsejev</title><link>http://davidwalsh.name/detect-ipad#comment-32263</link> <dc:creator>Sergej Jevsejev</dc:creator> <pubDate>Sun, 20 May 2012 07:43:25 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4948#comment-32263</guid> <description>You can do it in PHP:http://sjevsejev.blogspot.com/2012/05/php-mobile-detect-class-ipad-iphone.html</description> <content:encoded><![CDATA[<p>You can do it in PHP:</p><p><a
href="http://sjevsejev.blogspot.com/2012/05/php-mobile-detect-class-ipad-iphone.html" rel="nofollow">http://sjevsejev.blogspot.com/2012/05/php-mobile-detect-class-ipad-iphone.html</a></p> ]]></content:encoded> </item> <item><title>By: Bob</title><link>http://davidwalsh.name/detect-ipad#comment-31223</link> <dc:creator>Bob</dc:creator> <pubDate>Fri, 23 Mar 2012 20:31:39 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4948#comment-31223</guid> <description>Easy to do redirecting in PHP:If you just want to redirect iPhone users:If you also want to bounce iPad users, use this instead:Here&#039;s what the session variable &quot;fullsite&quot; is for:I always use a link in the mobile site that would allow the user to go to the full site if he wishes; the link goes to a page I call &quot;fullsite.php,&quot; and which includes this code:This sets the session variable and then sends them back to the full site&#039;s home page, and prevents the PHP from bouncing them continually back into the mobile site.Note that the session variable will stay set until they close their browser.</description> <content:encoded><![CDATA[<p>Easy to do redirecting in PHP:</p><p>If you just want to redirect iPhone users:</p><p>If you also want to bounce iPad users, use this instead:</p><p>Here&#8217;s what the session variable &#8220;fullsite&#8221; is for:</p><p>I always use a link in the mobile site that would allow the user to go to the full site if he wishes; the link goes to a page I call &#8220;fullsite.php,&#8221; and which includes this code:</p><p>This sets the session variable and then sends them back to the full site&#8217;s home page, and prevents the PHP from bouncing them continually back into the mobile site.</p><p>Note that the session variable will stay set until they close their browser.</p> ]]></content:encoded> </item> <item><title>By: nev</title><link>http://davidwalsh.name/detect-ipad#comment-30953</link> <dc:creator>nev</dc:creator> <pubDate>Sun, 11 Mar 2012 16:13:00 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4948#comment-30953</guid> <description>Yes but you could employ logic in both cases which does and does not find the string &quot;iPad&quot;.</description> <content:encoded><![CDATA[<p>Yes but you could employ logic in both cases which does and does not find the string &#8220;iPad&#8221;.</p> ]]></content:encoded> </item> <item><title>By: Matt</title><link>http://davidwalsh.name/detect-ipad#comment-30823</link> <dc:creator>Matt</dc:creator> <pubDate>Wed, 07 Mar 2012 01:10:37 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4948#comment-30823</guid> <description>This post is missing what&#039;s by far the best check for an iPad (or iPhone) in JavaScript:&lt;code&gt;navigator.platform === &#039;iPad&#039; &#124;&#124; navigator.platform === &#039;iPhone&#039;&lt;/code&gt;The best part is that the platform property can&#039;t be easily spoofed. Some Android devices, for example, will allow users to change the user agent string to match that of an iPad, but changing it won&#039;t affect the value of navigator.platform.</description> <content:encoded><![CDATA[<p>This post is missing what&#8217;s by far the best check for an iPad (or iPhone) in JavaScript:</p><p><code>navigator.platform === 'iPad' || navigator.platform === 'iPhone'</code></p><p>The best part is that the platform property can&#8217;t be easily spoofed. Some Android devices, for example, will allow users to change the user agent string to match that of an iPad, but changing it won&#8217;t affect the value of navigator.platform.</p> ]]></content:encoded> </item> <item><title>By: Genesis</title><link>http://davidwalsh.name/detect-ipad#comment-27791</link> <dc:creator>Genesis</dc:creator> <pubDate>Thu, 01 Dec 2011 04:37:59 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4948#comment-27791</guid> <description>the php code is not working anymore.. :( help anyone?</description> <content:encoded><![CDATA[<p>the php code is not working anymore.. :( help anyone?</p> ]]></content:encoded> </item> <item><title>By: My Bookmarks &#171; Ruman&#039;s Blog</title><link>http://davidwalsh.name/detect-ipad#comment-27663</link> <dc:creator>My Bookmarks &#171; Ruman&#039;s Blog</dc:creator> <pubDate>Fri, 18 Nov 2011 08:30:08 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4948#comment-27663</guid> <description>[...] iPad Detection Using JavaScript or PHP [...]</description> <content:encoded><![CDATA[<p>[...] iPad Detection Using JavaScript or PHP [...]</p> ]]></content:encoded> </item> <item><title>By: Dobes</title><link>http://davidwalsh.name/detect-ipad#comment-27582</link> <dc:creator>Dobes</dc:creator> <pubDate>Mon, 14 Nov 2011 01:01:01 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4948#comment-27582</guid> <description>That is true in general, but in the case of the user-agent string for iPad it never puts iPad at the start of the string...</description> <content:encoded><![CDATA[<p>That is true in general, but in the case of the user-agent string for iPad it never puts iPad at the start of the string&#8230;</p> ]]></content:encoded> </item> <item><title>By: Richie</title><link>http://davidwalsh.name/detect-ipad#comment-27126</link> <dc:creator>Richie</dc:creator> <pubDate>Tue, 04 Oct 2011 22:13:52 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4948#comment-27126</guid> <description>A fourth method are ESI tags like:http://esi-examples.akamai.com/viewsource/ad.htmlThis is required when using a server side templating system that renders first before JavaScript</description> <content:encoded><![CDATA[<p>A fourth method are ESI tags like:</p><p><a
href="http://esi-examples.akamai.com/viewsource/ad.html" rel="nofollow">http://esi-examples.akamai.com/viewsource/ad.html</a></p><p>This is required when using a server side templating system that renders first before JavaScript</p> ]]></content:encoded> </item> <item><title>By: Windows User</title><link>http://davidwalsh.name/detect-ipad#comment-26973</link> <dc:creator>Windows User</dc:creator> <pubDate>Sat, 24 Sep 2011 16:41:10 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4948#comment-26973</guid> <description>&lt;code&gt; if (navigator.userAgent.indexOf(&#039;iPad&#039;) != -1)) {
document.location = &quot;automelt.html&quot;;&lt;/code&gt;</description> <content:encoded><![CDATA[<p><code> if (navigator.userAgent.indexOf('iPad') != -1)) {<br
/> document.location = "automelt.html";</code></p> ]]></content:encoded> </item> <item><title>By: Windows User</title><link>http://davidwalsh.name/detect-ipad#comment-26972</link> <dc:creator>Windows User</dc:creator> <pubDate>Sat, 24 Sep 2011 16:39:42 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=4948#comment-26972</guid> <description>if (navigator.userAgent.indexOf(&#039;iPad&#039;) != -1)) {
document.task = &quot;selfdestruct.html&quot;;
}</description> <content:encoded><![CDATA[<p>if (navigator.userAgent.indexOf(&#8216;iPad&#8217;) != -1)) {<br
/> document.task = &#8220;selfdestruct.html&#8221;;<br
/> }</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.014 seconds using disk: basic
Object Caching 805/805 objects using disk: basic

Served from: davidwalsh.name @ 2012-05-22 04:28:25 -->
