Ajax call per page
Ajax call per page
I've searched through several resources including this forum and stackoverflow etc. and still could not find an answer.
What I want to achieve is to:
- make ajax call for resources for every page that is being loaded
- pass at least number of the page that is about to be loaded, as an argument in mentioned ajax call
Complete flow:
- we start from page 1 that will load 10 records so the ajax call is sent for: api/resources/{page}/{records per page} i.e.api/resources/1/10
- when we move to page 2, ajax call is sent for api/resources/2/10
- etc.
How can I reach this?
Answers
Hi @kosicielPL ,
The best thing to do is to look at
serverSide
processing, and this example here. The examples you want aren't compliant with the format that SSP uses, but it shouldn't be hard to modify your code to fit the protocol,Cheers,
Colin