Load content on click

Load content on click

cyclone200cyclone200 Posts: 1Questions: 1Answers: 0

Hello,

I have a DataTable generated from a database including a lot images. In order to avoid performance issues, I'd like to show only the first 10 or 20 items in the table and when a user click on "Page 2", it loads the next 10 or 20 items.

Because there is nearly 2000 lines, loading 2000 images every time may be harmful.

Do you have an idea to link an ajax request to the database with the "next page" button ?

Thank you very much.

Regards.

This discussion has been closed.