Loading child rows using ajax

Loading child rows using ajax

mbornmborn Posts: 44Questions: 17Answers: 0

I have a main table that is the summation of one or more records for each store in a retail business. I am trying to use ajax (my first time) to retrieve the detail records (one or more) that make up the main records. I have used https://datatables.net/blog/2019-01-11 as a guide, but it appears to me that the php code it shows deals only with the editor, and doesn't show the code that sends the data. Does anyone have a simple example showing an ajax call in the datatable, and the corresponding code on the server side that generates the data? Thanks in advance.

Answers

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

    You can use the Editor PHP scripts as they are open source - this blog post describes that in more detail. This simple example would be a good place to start, you can see the server-side scripts there.

    Colin

  • mbornmborn Posts: 44Questions: 17Answers: 0

    Sorry, meant to click yes here.

Sign In or Register to comment.