Partial display of large table in jQuery
I have a table with about 5000 rows which I am dynamically building with jQyuery. I was wondering if there is a way to display rows in chunks as the table is created until finally all rows are shown?
I tried this but no luck. So far I have tried the following:
a) Making stubs b) Getting common rows and dividing them into smaller pieces. c) Entering the first fragment into the table and including a function call in the last line to call the next batch of data to load).
Unfortunately, even this way he wants to wait until everything is displayed. Is there a way to get around this?
a source to share
Why do you need 5K lines in a webapp? I highly recommend using paging.
Otherwise solution c) seems to be the best and should work. Perhaps you just need a little tweak. Are you calling the next batch of data with an ajax call? What do you see when loading the next batch of data? Does the browser launch?
a source to share