Hi,
I’m using an HTML Label box with Overflow set to Scroll. I’d like to add some script that will allow me to check if the if the user has scrolled to the bottom of that box. Any ideas?
Hi,
I’m using an HTML Label box with Overflow set to Scroll. I’d like to add some script that will allow me to check if the if the user has scrolled to the bottom of that box. Any ideas?
Hello,
I hope I understand your problem.
An idea can be to check how many rows are available inside the table.
From my knowledge, if a table has scroll you can’t find(with script) all the rows that the table contains.
For example if inside the table there are available more than 20 rows, the table was scrolled.
table1.metricSetBindings[0].dataResult.cellset.rows;
I’m thinking that would work if I were displaying a table, but this is an HTML Label, which is essentially just a text field.
Hi Danny,
You could try adding an event listener to your object.
// find it
document.getElementById(“myDIV”).addEventListener(“scroll”, myFunction);
function myFunction(e) {
// do something here
}
e.currentTarget.scrollTop should give you the current position.