<?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"
	>
<channel>
	<title>Comments on: Detect and Prompt iPhone Visitors</title>
	<atom:link href="http://www.iphonemicrosites.com/tutorials/detect-and-prompt-iphone-visitors/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iphonemicrosites.com/tutorials/detect-and-prompt-iphone-visitors/</link>
	<description>iPhone-Optimized Website Solutions</description>
	<pubDate>Tue, 06 Jan 2009 09:12:53 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: admin</title>
		<link>http://www.iphonemicrosites.com/tutorials/detect-and-prompt-iphone-visitors/#comment-61</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 07 Aug 2008 03:53:33 +0000</pubDate>
		<guid isPermaLink="false">http://iphonemicrosites.com/?p=148#comment-61</guid>
		<description>Thanks for your comment Andrea, good point! As this script is simplified for illustrative purposes it does not account for display normal browser content. Its worth noting one can also display html content on this page for regular browsers if redirection is not a desirable solution (ie, a splash page).

-Admin</description>
		<content:encoded><![CDATA[<p>Thanks for your comment Andrea, good point! As this script is simplified for illustrative purposes it does not account for display normal browser content. Its worth noting one can also display html content on this page for regular browsers if redirection is not a desirable solution (ie, a splash page).</p>
<p>-Admin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrea</title>
		<link>http://www.iphonemicrosites.com/tutorials/detect-and-prompt-iphone-visitors/#comment-60</link>
		<dc:creator>Andrea</dc:creator>
		<pubDate>Tue, 29 Jul 2008 11:44:39 +0000</pubDate>
		<guid isPermaLink="false">http://iphonemicrosites.com/?p=148#comment-60</guid>
		<description>If you use this code and you visit the site with a regular browser you get a blank page. The correct code that allow you to go directly to the regular site if visiting with a normal browser is


function iPhoneAlert() {
if((navigator.userAgent.match(/iPhone/i))&#124;&#124;(navigator.userAgent.
match(/iPod/i))){
var question = confirm("Would you like to view the iPhone-optimized version of our site?")
if (question){
window.location = "http://lite.iphonemicrosites.com/home.html";
}else{
window.location = "http://iphonemicrosites.com/";
	}
} else {
		window.location = "http://iphonemicrosites.com";
}
}</description>
		<content:encoded><![CDATA[<p>If you use this code and you visit the site with a regular browser you get a blank page. The correct code that allow you to go directly to the regular site if visiting with a normal browser is</p>
<p>function iPhoneAlert() {<br />
if((navigator.userAgent.match(/iPhone/i))||(navigator.userAgent.<br />
match(/iPod/i))){<br />
var question = confirm(&#8221;Would you like to view the iPhone-optimized version of our site?&#8221;)<br />
if (question){<br />
window.location = &#8220;http://lite.iphonemicrosites.com/home.html&#8221;;<br />
}else{<br />
window.location = &#8220;http://iphonemicrosites.com/&#8221;;<br />
	}<br />
} else {<br />
		window.location = &#8220;http://iphonemicrosites.com&#8221;;<br />
}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GenghisPhlip</title>
		<link>http://www.iphonemicrosites.com/tutorials/detect-and-prompt-iphone-visitors/#comment-59</link>
		<dc:creator>GenghisPhlip</dc:creator>
		<pubDate>Wed, 09 Jul 2008 13:47:02 +0000</pubDate>
		<guid isPermaLink="false">http://iphonemicrosites.com/?p=148#comment-59</guid>
		<description>Very nice! Thank you very much for this great information!</description>
		<content:encoded><![CDATA[<p>Very nice! Thank you very much for this great information!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Narendar</title>
		<link>http://www.iphonemicrosites.com/tutorials/detect-and-prompt-iphone-visitors/#comment-58</link>
		<dc:creator>Narendar</dc:creator>
		<pubDate>Thu, 03 Jul 2008 05:56:23 +0000</pubDate>
		<guid isPermaLink="false">http://iphonemicrosites.com/?p=148#comment-58</guid>
		<description>It is very help full, much helps for new web developers for Iphone :)</description>
		<content:encoded><![CDATA[<p>It is very help full, much helps for new web developers for Iphone <img src='http://www.iphonemicrosites.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
</channel>
</rss>
