<div dir="ltr">(You'd think I'd learn to send these properly)<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Dave S</b> <span dir="ltr"><<a href="mailto:snidely.too@gmail.com">snidely.too@gmail.com</a>></span><br>
Date: Fri, Aug 23, 2013 at 10:56 AM<br>Subject: Re: [PATCH 14 of 20] hgweb: add ajaxScrollInit skeleton<br>To: Alexander Plavin <<a href="mailto:alexander@plav.in">alexander@plav.in</a>><br><br><br><div dir="ltr"><br>
<div class="gmail_quote"><div class="im">On Tue, Aug 13, 2013 at 10:56 AM, Dave S <span dir="ltr"><<a href="mailto:snidely.too@gmail.com" target="_blank">snidely.too@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div>On Tue, Aug 13, 2013 at 1:34 AM, Alexander Plavin <span dir="ltr"><<a href="mailto:alexander@plav.in" target="_blank">alexander@plav.in</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<br>
<br>
13.08.2013, 03:32, "Dave S" <<a href="mailto:snidely.too@gmail.com" target="_blank">snidely.too@gmail.com</a>>:<br>
<div>> (resend, to list this time)<br>
</div></blockquote><div> </div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>> I haven't figured out who much the page is growing; Opera's "page info" tool doesn't seem clear about this, and I haven't looked enough to have a better tool.<br>


<br>
</div></blockquote><div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Don't get what you want to say here by 'who (how?) much the page is growing'. It grows 60 entries each time you scroll to the bottom.<br>


</blockquote><div><br></div></div><div>Yes, "how much"; I apologize for the proof-reading goof.  I couldn't tell if it was growing by 6 or 60 entries, and having a visual clue would have been nice.  I was also looking for Opera page-info to tell me, and it didn't ... at least not in a way I could recognize; I think the numbers it displayed reflected the initial load, and didn't change when I scolled down and triggered some more.</div>


<div><br></div><div>Also, I am not certain I prefer "grows by 60" to "moves the visible buffer by 60" (Android, and I guess MySQL, call this a "cursor"); in the latter case, the top of the window would be showing a different line after each dynamic load (and maybe with a cursor, you want to move 60/2, and also have to add dynamic up-scrolling).</div>


<div><br></div></div></blockquote><div> </div></div><div>As an example of asynchronous completion, here's a little background on "cursors" (which you may understand better than I; I was obviously being loose in my usage).</div>

<div><br></div><div><<a href="http://en.wikipedia.org/wiki/Cursor_%28databases%29" target="_blank">http://en.wikipedia.org/wiki/Cursor_%28databases%29</a>></div><div><br></div><div>What I was trying to use "cursor" to say, was having the display be a fixed number of rows, but sliding down (or up) the full set of rows (I guess another description of this would be something like a browser's viewport).</div>

<div><br></div><div>And this article has an interesting usage:</div><div><br></div><div><<a href="http://tech.sarathdr.com/android-app/convert-database-cursor-result-to-json-array-android-app-development/" target="_blank">http://tech.sarathdr.com/android-app/convert-database-cursor-result-to-json-array-android-app-development/</a>></div>

<div><br></div><div>"This might be use ful when you do some database applications with phonegap. Phonegap storage class could be some times slow and difficult handle. Then you can write a separate plugin to do the querying. If you use database raw queries you will get the results as cursor data structure. The below code converts that to json array."</div>

<div><br></div><div><br></div><div>But I can see that removing the top entries that were previously displayed, and then restoring them when scrolling up, would add to the complications of writing the code.</div><div><br>
</div>
<div>/dps</div><div><br></div><div><br></div><div><br></div></div></div>
</div><br><br clear="all"><br>-- <br>test signature -- please apply at front gate on Tuesdays only.
</div>