When i click on page dont show the data

When i click on page dont show the data

gabrielchirongabrielchiron Posts: 2Questions: 1Answers: 0

Hy all!

I have a table with ajax data. In this ajax data i want to show 10 items and if i click on other paga show the next items.

I use ajax with the parameter $_GET["start"], $_GET["length"] and the query is OK.

The first time show me 10 items and the count of pages ok.

Example: Showing 1 to 10 of 10,290 entries and 1029 pages :)

But the problem is when i click in other page... in ajax call i can show the data ok but the datatable donr reload the items and i can only see: procesing...

Answers

  • colincolin Posts: 15,171Questions: 1Answers: 2,589

    Thanks for your question. As noted in the forum rules, please post a link to a running test case showing the issue so we can offer some help. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • gabrielchirongabrielchiron Posts: 2Questions: 1Answers: 0

    In preview i dont know i cant see the result but in network i can see the data ok:

    http://live.datatables.net/kahaxido/1

  • colincolin Posts: 15,171Questions: 1Answers: 2,589

    Thanks for that Gabriel, would you be able to paste in an example of the ajax response when you're requesting that second page, please. It's likely to be something with how that data is formed.

This discussion has been closed.