<?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: WebKit on the iPhone (Part 1)</title>
	<atom:link href="http://www.icab.de/blog/2009/07/27/webkit-on-the-iphone-part-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.icab.de/blog/2009/07/27/webkit-on-the-iphone-part-1/</link>
	<description>iCab related stuff; Mac, iPhone and Cocoa programming</description>
	<lastBuildDate>Fri, 10 Sep 2010 12:44:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Nilesh</title>
		<link>http://www.icab.de/blog/2009/07/27/webkit-on-the-iphone-part-1/comment-page-2/#comment-3373</link>
		<dc:creator>Nilesh</dc:creator>
		<pubDate>Sun, 04 Jul 2010 18:13:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=14#comment-3373</guid>
		<description>Great work man, Thank you very much....</description>
		<content:encoded><![CDATA[<p>Great work man, Thank you very much&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ashish</title>
		<link>http://www.icab.de/blog/2009/07/27/webkit-on-the-iphone-part-1/comment-page-2/#comment-2905</link>
		<dc:creator>ashish</dc:creator>
		<pubDate>Wed, 19 May 2010 09:37:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=14#comment-2905</guid>
		<description>also forgot to ask how stanza and other readers are doing it? Are they not using webview?</description>
		<content:encoded><![CDATA[<p>also forgot to ask how stanza and other readers are doing it? Are they not using webview?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ashish</title>
		<link>http://www.icab.de/blog/2009/07/27/webkit-on-the-iphone-part-1/comment-page-2/#comment-2904</link>
		<dc:creator>ashish</dc:creator>
		<pubDate>Wed, 19 May 2010 09:36:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=14#comment-2904</guid>
		<description>thanks Alexander, as you are saying that &quot;always scroll less than a full page height&quot;.
while loading a file to webview, the line space and paragraph spaces we can not determine where they will occur. How would be possible to calculate page height?</description>
		<content:encoded><![CDATA[<p>thanks Alexander, as you are saying that &#8220;always scroll less than a full page height&#8221;.<br />
while loading a file to webview, the line space and paragraph spaces we can not determine where they will occur. How would be possible to calculate page height?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander</title>
		<link>http://www.icab.de/blog/2009/07/27/webkit-on-the-iphone-part-1/comment-page-2/#comment-2889</link>
		<dc:creator>Alexander</dc:creator>
		<pubDate>Tue, 18 May 2010 13:09:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=14#comment-2889</guid>
		<description>@ashish
There&#039;s no simple solution here. You would have to manually measure the line heights of the text to be able to correct the scrolling offset. But please note that it is possible that you can&#039;t find any offset at all which would not cut off a line of text. This can happen when a web page uses multiple columns and the text of these columns is offset by a half line.

Maybe a better pragmatic solution would be to always scroll less than a full page height. So the last line that is shown before scrolling (fully or only partially) will be shown as the first line after scrolling. This way you don&#039;t need to be really exact.</description>
		<content:encoded><![CDATA[<p>@ashish<br />
There&#8217;s no simple solution here. You would have to manually measure the line heights of the text to be able to correct the scrolling offset. But please note that it is possible that you can&#8217;t find any offset at all which would not cut off a line of text. This can happen when a web page uses multiple columns and the text of these columns is offset by a half line.</p>
<p>Maybe a better pragmatic solution would be to always scroll less than a full page height. So the last line that is shown before scrolling (fully or only partially) will be shown as the first line after scrolling. This way you don&#8217;t need to be really exact.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ashish</title>
		<link>http://www.icab.de/blog/2009/07/27/webkit-on-the-iphone-part-1/comment-page-2/#comment-2888</link>
		<dc:creator>ashish</dc:creator>
		<pubDate>Tue, 18 May 2010 10:58:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=14#comment-2888</guid>
		<description>@Alexander
I have the same question in this thread but its not answered properly. Any help from your point of view, how to deal with this?
http://stackoverflow.com/questions/2707210/uiwebview-paging-line-cut-off</description>
		<content:encoded><![CDATA[<p>@Alexander<br />
I have the same question in this thread but its not answered properly. Any help from your point of view, how to deal with this?<br />
<a href="http://stackoverflow.com/questions/2707210/uiwebview-paging-line-cut-off" rel="nofollow">http://stackoverflow.com/questions/2707210/uiwebview-paging-line-cut-off</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander</title>
		<link>http://www.icab.de/blog/2009/07/27/webkit-on-the-iphone-part-1/comment-page-2/#comment-2649</link>
		<dc:creator>Alexander</dc:creator>
		<pubDate>Tue, 04 May 2010 21:30:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=14#comment-2649</guid>
		<description>@Sam
You won&#039;t get notified when the page changes due to JavaScript. The only chance would be to do some checks yourself. You could do this on touch events or also every x seconds or so.</description>
		<content:encoded><![CDATA[<p>@Sam<br />
You won&#8217;t get notified when the page changes due to JavaScript. The only chance would be to do some checks yourself. You could do this on touch events or also every x seconds or so.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://www.icab.de/blog/2009/07/27/webkit-on-the-iphone-part-1/comment-page-2/#comment-2643</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Tue, 04 May 2010 19:24:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=14#comment-2643</guid>
		<description>Thank you for this blog. I&#039;m learning a lot.
I have a question about using Javascript like you do in some of your other posts. Can you detect when the web page changes due to Javascript? I&#039;m trying to use your method for links with target=&quot;_blank&quot;, but it&#039;s not working on the Google Reader site. Those links are created by javascript after the page has loaded and the user has clicked on an entry. Before that, they don&#039;t have the target attribute. How do you detect links where the target attribute is added by javascript? Thank you.</description>
		<content:encoded><![CDATA[<p>Thank you for this blog. I&#8217;m learning a lot.<br />
I have a question about using Javascript like you do in some of your other posts. Can you detect when the web page changes due to Javascript? I&#8217;m trying to use your method for links with target=&#8221;_blank&#8221;, but it&#8217;s not working on the Google Reader site. Those links are created by javascript after the page has loaded and the user has clicked on an entry. Before that, they don&#8217;t have the target attribute. How do you detect links where the target attribute is added by javascript? Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saving an Image from UIWebView &#124; Steili.com</title>
		<link>http://www.icab.de/blog/2009/07/27/webkit-on-the-iphone-part-1/comment-page-2/#comment-2576</link>
		<dc:creator>Saving an Image from UIWebView &#124; Steili.com</dc:creator>
		<pubDate>Sat, 01 May 2010 03:07:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=14#comment-2576</guid>
		<description>[...] iCab Blog for the elementFromPoint idea &#8211; see Alexander&#8217;s comment on 9/1 11:55am, and the support [...]</description>
		<content:encoded><![CDATA[<p>[...] iCab Blog for the elementFromPoint idea &#8211; see Alexander&#8217;s comment on 9/1 11:55am, and the support [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander</title>
		<link>http://www.icab.de/blog/2009/07/27/webkit-on-the-iphone-part-1/comment-page-2/#comment-2556</link>
		<dc:creator>Alexander</dc:creator>
		<pubDate>Thu, 29 Apr 2010 10:21:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=14#comment-2556</guid>
		<description>@JC
There seems to be no public API to get the smooth &quot;checkerboard scrolling&quot; from in Safari.
In case you find a way to implement this using public APIs only, please let me know.</description>
		<content:encoded><![CDATA[<p>@JC<br />
There seems to be no public API to get the smooth &#8220;checkerboard scrolling&#8221; from in Safari.<br />
In case you find a way to implement this using public APIs only, please let me know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JC</title>
		<link>http://www.icab.de/blog/2009/07/27/webkit-on-the-iphone-part-1/comment-page-2/#comment-2547</link>
		<dc:creator>JC</dc:creator>
		<pubDate>Wed, 28 Apr 2010 16:10:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=14#comment-2547</guid>
		<description>Hello Alexander.

Is there a simple way to make the UIWebView scroll more &quot;smoothly&quot; similar to Safari, where it offloads the offscreen portions with the &quot;gray area&quot;?  Could this be done with CATileLayer?</description>
		<content:encoded><![CDATA[<p>Hello Alexander.</p>
<p>Is there a simple way to make the UIWebView scroll more &#8220;smoothly&#8221; similar to Safari, where it offloads the offscreen portions with the &#8220;gray area&#8221;?  Could this be done with CATileLayer?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander</title>
		<link>http://www.icab.de/blog/2009/07/27/webkit-on-the-iphone-part-1/comment-page-2/#comment-2055</link>
		<dc:creator>Alexander</dc:creator>
		<pubDate>Sun, 21 Mar 2010 21:55:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=14#comment-2055</guid>
		<description>@akp
There&#039;s only one way to scroll a web view programmatically, and this is by using the JavaScript function &quot;scrollTo&quot;:

window.scrollTo(x, y);

The coordinates are document coordinates, not device coordinates.</description>
		<content:encoded><![CDATA[<p>@akp<br />
There&#8217;s only one way to scroll a web view programmatically, and this is by using the JavaScript function &#8220;scrollTo&#8221;:</p>
<p>window.scrollTo(x, y);</p>
<p>The coordinates are document coordinates, not device coordinates.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: akp</title>
		<link>http://www.icab.de/blog/2009/07/27/webkit-on-the-iphone-part-1/comment-page-2/#comment-2054</link>
		<dc:creator>akp</dc:creator>
		<pubDate>Sun, 21 Mar 2010 15:47:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=14#comment-2054</guid>
		<description>I searched I have the same question but there was no answer for this question in blog?

Hi,
I am trying to scroll webview to an offset when a button click occurs [Page up and Page down buttons], for that i have to know the following things,

i) Scrollable content height,
ii) How to move the webview to an offset of the screen.

If u have any info , would be appreciated

http://www.iphonedevsdk.com/forum/iphone-sdk-development/30523-incorrect-javascript-scrolling-uiwebview.html</description>
		<content:encoded><![CDATA[<p>I searched I have the same question but there was no answer for this question in blog?</p>
<p>Hi,<br />
I am trying to scroll webview to an offset when a button click occurs [Page up and Page down buttons], for that i have to know the following things,</p>
<p>i) Scrollable content height,<br />
ii) How to move the webview to an offset of the screen.</p>
<p>If u have any info , would be appreciated</p>
<p><a href="http://www.iphonedevsdk.com/forum/iphone-sdk-development/30523-incorrect-javascript-scrolling-uiwebview.html" rel="nofollow">http://www.iphonedevsdk.com/forum/iphone-sdk-development/30523-incorrect-javascript-scrolling-uiwebview.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: akp</title>
		<link>http://www.icab.de/blog/2009/07/27/webkit-on-the-iphone-part-1/comment-page-2/#comment-2053</link>
		<dc:creator>akp</dc:creator>
		<pubDate>Sun, 21 Mar 2010 15:37:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=14#comment-2053</guid>
		<description>Hi,

I am loading the file in UIWebView and hiding the scroll
I want to scroll the page programatically by number of lines of text. Any help how can I do that using java script.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am loading the file in UIWebView and hiding the scroll<br />
I want to scroll the page programatically by number of lines of text. Any help how can I do that using java script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander</title>
		<link>http://www.icab.de/blog/2009/07/27/webkit-on-the-iphone-part-1/comment-page-1/#comment-2048</link>
		<dc:creator>Alexander</dc:creator>
		<pubDate>Sat, 20 Mar 2010 20:27:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=14#comment-2048</guid>
		<description>@David Brossa
Depending of your needs, you can be much more (or maybe less) specific when checking for target names. This blog post should not cover all possible aspects, it should show the general idea how you can solve certain tasks on the iPhone.

According to the target name &quot;_pdf&quot; I have to say, target names with an underscore as the first character are &quot;reserved&quot; and should not be used for your own target names. Though when only used internally within your app and not in real web pages, this might be OK.</description>
		<content:encoded><![CDATA[<p>@David Brossa<br />
Depending of your needs, you can be much more (or maybe less) specific when checking for target names. This blog post should not cover all possible aspects, it should show the general idea how you can solve certain tasks on the iPhone.</p>
<p>According to the target name &#8220;_pdf&#8221; I have to say, target names with an underscore as the first character are &#8220;reserved&#8221; and should not be used for your own target names. Though when only used internally within your app and not in real web pages, this might be OK.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Brossa</title>
		<link>http://www.icab.de/blog/2009/07/27/webkit-on-the-iphone-part-1/comment-page-1/#comment-2047</link>
		<dc:creator>David Brossa</dc:creator>
		<pubDate>Sat, 20 Mar 2010 17:59:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.icab.de/blog/?p=14#comment-2047</guid>
		<description>Wouldn&#039;t this be more inclusive? I often use my own target names in links (ex target=&quot;_pdf&quot;)

if ( target &amp;&amp; ( (target != &#039;_self&#039;) &#124;&#124; (target != &#039;_parent&#039;) &#124;&#124; (target != &#039;_top&#039;) ) )</description>
		<content:encoded><![CDATA[<p>Wouldn&#8217;t this be more inclusive? I often use my own target names in links (ex target=&#8221;_pdf&#8221;)</p>
<p>if ( target &amp;&amp; ( (target != &#8216;_self&#8217;) || (target != &#8216;_parent&#8217;) || (target != &#8216;_top&#8217;) ) )</p>
]]></content:encoded>
	</item>
</channel>
</rss>
