16
Views
1
Comments
auto scroll table with ajax refresh
Question

Hello, 
this is my first question here in the community, 
I'm sorry if this is wrong place to ask, !

I have build a simple web page, that make a get ajax call, and it returns the data successfully, I have render this data as a table, and this webpage will be shown on waiting area screen, so the ajax refresh the table data every 5 seconds,

the issue is, if the table overflow...meaning that there are many records inside this table, currently it shows but u need to scroll by the scrollbar to see the new rows, however this is not possible because its outer screen, so I was thinking about auto scroll idea for this table - something like advertisements- , and my code is attached; also I have include snippet of my CSS code. 

Is there any possibility to just include the auto scrolling functionality inside the table ?, while the table is filled by ajax request that refresh every x seconds.. 

any help would be appreciated, 

Thanks

room.html
style.css
2022-12-30 09-46-57
Deepika Patel

Hi israa,

I didn't get the requirement. Could you please send us an OML file or a screenshot of the table taken from your browser? For scrolling, you've to set the height of the table and overflow-y: auto.

Thanks!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.