Way Scroll Element Inside Page?
Posted: Sat Jun 13, 2020 4:01 am
I have a table that's scrollable inside another page (also scrollable). I need to scroll the table all the way down in order to have it load all the data I'm trying to grab but I can't get any of the current tools to work.
ScrollToBottom only works on the page and doesn't scroll the table element at all. Infinite scroll seems to work but then when I check the data it's just grabbed the same 15 table rows over and over. It seems to reload the page, which resets everything.
What I think I need is a script something like this:
that I can run on the page after it loads but I'm not sure how to use the scripting to make that work.
ScrollToBottom only works on the page and doesn't scroll the table element at all. Infinite scroll seems to work but then when I check the data it's just grabbed the same 15 table rows over and over. It seems to reload the page, which resets everything.
What I think I need is a script something like this:
Code: Select all
function scrollDiv() {
var elmnt = document.getElementById("ap-container");
var ht = elmnt.scrollHeight;
elmnt.scrollTop = ht;
}