Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to handle "infinite" web pages?
    primarykey
    data
    text
    <p>Once upon a time, life was simple: All web pages had finite length and if they didn't fit into the current windows/view size, you'd simply scroll down until you reached the bottom of the page.</p> <p>But I recently noticed that there is a new trend in the web design world: <strong>Bottomless</strong> web pages.</p> <p>Probably the most familiar examples of sites utilizing such pages are Facebook and Twitter: You scroll to the "bottom", only to trigger some refresh that adds content to the page, so the "old bottom" is no longer a bottom and, instead, there is a new "bottom".</p> <p>In an Android WebView, I need to be able capture all the content currently available on that "page", but I am not sure how to approach this:</p> <p>Simulate user's scroll down via <a href="https://stackoverflow.com/questions/5069765/android-webview-how-to-autoscroll-a-page/5070157#5070157">View.scrollBy(int x, int y)</a>, <a href="https://stackoverflow.com/questions/4680174/android-webview-scroll-down/4680975#4680975">pageDown()</a> or <a href="https://stackoverflow.com/questions/2238938/how-to-programmatically-scroll-android-webview/2239301#2239301">window.scrollTo()</a>?</p> <p>Or is there an API method that does this automatically for me?</p> <p>Or am I approaching this completely wrong and I shouldn't attempt to get to the "real bottom" in one capture (if possible at all)?</p> <p><strong>EDIT</strong>: It seems that tagging this question <code>javascript</code> communicated the opposite message. I am interested in capturing (then processing) such bottomless pages on Android's WebView, using <strong>Java</strong>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload