<?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/"
		>
<channel>
	<title>Comments on: iPhone Webapps 101: Getting Safari out of the way</title>
	<atom:link href="http://rakaz.nl/2009/09/iphone-webapps-101-getting-safari-out-of-the-way.html/feed" rel="self" type="application/rss+xml" />
	<link>http://rakaz.nl/2009/09/iphone-webapps-101-getting-safari-out-of-the-way.html</link>
	<description>about standards, webdesign, usability and open source</description>
	<lastBuildDate>Fri, 03 Sep 2010 12:52:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Niels Leenheer</title>
		<link>http://rakaz.nl/2009/09/iphone-webapps-101-getting-safari-out-of-the-way.html/comment-page-1#comment-1504</link>
		<dc:creator>Niels Leenheer</dc:creator>
		<pubDate>Wed, 23 Sep 2009 08:18:25 +0000</pubDate>
		<guid isPermaLink="false">http://rakaz.nl/?p=587#comment-1504</guid>
		<description><![CDATA[@Teye and @Ryan:
A full screen iPhone webapp can only be a single web page. Any link you try to open will launch Safari instead of replacing the current page.

The most common way to solve this would be use an AJAX call to fetch the information you want to show it on the current page. Most libraries that help with iPhone development such as iUI use this technique. My own webapp is also a single HTML page which loads additional information using AJAX.]]></description>
		<content:encoded><![CDATA[<p>@Teye and @Ryan:<br />
A full screen iPhone webapp can only be a single web page. Any link you try to open will launch Safari instead of replacing the current page.</p>
<p>The most common way to solve this would be use an AJAX call to fetch the information you want to show it on the current page. Most libraries that help with iPhone development such as iUI use this technique. My own webapp is also a single HTML page which loads additional information using AJAX.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://rakaz.nl/2009/09/iphone-webapps-101-getting-safari-out-of-the-way.html/comment-page-1#comment-1503</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Wed, 23 Sep 2009 08:06:54 +0000</pubDate>
		<guid isPermaLink="false">http://rakaz.nl/?p=587#comment-1503</guid>
		<description><![CDATA[On my first web-app that I am building I notice that whenever I click one of my buttons that should load the content in the current web-app, it instead opens the link in safari and ruining the whole point of making it a web-app. Any suggestions? Each link is currently the simple style of: &lt;a href=&quot;portfolio.html&quot;]]></description>
		<content:encoded><![CDATA[<p>On my first web-app that I am building I notice that whenever I click one of my buttons that should load the content in the current web-app, it instead opens the link in safari and ruining the whole point of making it a web-app. Any suggestions? Each link is currently the simple style of: &lt;a href=&quot;portfolio.html&quot;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Teye</title>
		<link>http://rakaz.nl/2009/09/iphone-webapps-101-getting-safari-out-of-the-way.html/comment-page-1#comment-1502</link>
		<dc:creator>Teye</dc:creator>
		<pubDate>Wed, 23 Sep 2009 07:04:04 +0000</pubDate>
		<guid isPermaLink="false">http://rakaz.nl/?p=587#comment-1502</guid>
		<description><![CDATA[Hi!

When I add my application to the main screen and open it, it&#039;s fine. But when I click a link in the screen it opens  a new &quot;window&quot; in safari, and the complete layout is ruined again. I make use of the iwebkit. 

Anybody a clue what I do wrong?]]></description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>When I add my application to the main screen and open it, it&#8217;s fine. But when I click a link in the screen it opens  a new &#8220;window&#8221; in safari, and the complete layout is ruined again. I make use of the iwebkit. </p>
<p>Anybody a clue what I do wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://rakaz.nl/2009/09/iphone-webapps-101-getting-safari-out-of-the-way.html/comment-page-1#comment-1501</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 21 Sep 2009 14:47:07 +0000</pubDate>
		<guid isPermaLink="false">http://rakaz.nl/?p=587#comment-1501</guid>
		<description><![CDATA[Possibly the dimming I&#039;m seeing is because my webapp has a canvas covering the whole screen, running code written in processing.js ...?]]></description>
		<content:encoded><![CDATA[<p>Possibly the dimming I&#8217;m seeing is because my webapp has a canvas covering the whole screen, running code written in processing.js &#8230;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate</title>
		<link>http://rakaz.nl/2009/09/iphone-webapps-101-getting-safari-out-of-the-way.html/comment-page-1#comment-1496</link>
		<dc:creator>Nate</dc:creator>
		<pubDate>Tue, 15 Sep 2009 23:52:06 +0000</pubDate>
		<guid isPermaLink="false">http://rakaz.nl/?p=587#comment-1496</guid>
		<description><![CDATA[This will swap out your status bar with the black version.

&lt;code&gt;
  &lt;meta name=&quot;apple-mobile-web-app-status-bar-style&quot; content=&quot;black&quot;&gt;
&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p>This will swap out your status bar with the black version.</p>
<p><code><br />
  &lt;meta name="apple-mobile-web-app-status-bar-style" content="black"&gt;<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niels Leenheer</title>
		<link>http://rakaz.nl/2009/09/iphone-webapps-101-getting-safari-out-of-the-way.html/comment-page-1#comment-1494</link>
		<dc:creator>Niels Leenheer</dc:creator>
		<pubDate>Tue, 15 Sep 2009 08:33:02 +0000</pubDate>
		<guid isPermaLink="false">http://rakaz.nl/?p=587#comment-1494</guid>
		<description><![CDATA[I have not experienced the first issue you mentioned.

Regarding the second issue. Being able to drag the whole app, including toolbars and other interface elements is something that I also ran into. I use a very similar trick to prevent it. 

&lt;pre&gt;document.body.addEventListener(&#039;touchmove&#039;, function(e) {
    e.preventDefault();
});&lt;/pre&gt;

Just be aware that you need to provide another means of scrolling if you want to show content that is larger than the screen will fit. I will spend some time on this issue in one of the next tutorials.]]></description>
		<content:encoded><![CDATA[<p>I have not experienced the first issue you mentioned.</p>
<p>Regarding the second issue. Being able to drag the whole app, including toolbars and other interface elements is something that I also ran into. I use a very similar trick to prevent it. </p>
<pre>document.body.addEventListener('touchmove', function(e) {
    e.preventDefault();
});</pre>
<p>Just be aware that you need to provide another means of scrolling if you want to show content that is larger than the screen will fit. I will spend some time on this issue in one of the next tutorials.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://rakaz.nl/2009/09/iphone-webapps-101-getting-safari-out-of-the-way.html/comment-page-1#comment-1493</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 14 Sep 2009 22:46:34 +0000</pubDate>
		<guid isPermaLink="false">http://rakaz.nl/?p=587#comment-1493</guid>
		<description><![CDATA[This is great!  

One other thing that&#039;s bothering me is that webapps seem to dim the screen when you press it, and un-dim when you release.  This makes it seem like the screen is flashing on re-draw.

Any idea how to stop that?  

Another one to disable is the behaviour which lets you drag a webapp up or down slightly, revealing unused canvas at top or bottom.  I used a handler for document.body.ontouchmove as described here: http://ajaxian.com/archives/iphone-web-app-spin-the-bottle

cheers]]></description>
		<content:encoded><![CDATA[<p>This is great!  </p>
<p>One other thing that&#8217;s bothering me is that webapps seem to dim the screen when you press it, and un-dim when you release.  This makes it seem like the screen is flashing on re-draw.</p>
<p>Any idea how to stop that?  </p>
<p>Another one to disable is the behaviour which lets you drag a webapp up or down slightly, revealing unused canvas at top or bottom.  I used a handler for document.body.ontouchmove as described here: <a href="http://ajaxian.com/archives/iphone-web-app-spin-the-bottle" rel="nofollow">http://ajaxian.com/archives/iphone-web-app-spin-the-bottle</a></p>
<p>cheers</p>
]]></content:encoded>
	</item>
</channel>
</rss>
