Ajax call per page

Ajax call per page

kosicielPLkosicielPL Posts: 3Questions: 2Answers: 0

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

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    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

This discussion has been closed.