Intercept JSON returned on serverside processing?

Intercept JSON returned on serverside processing?

LiamMLiamM Posts: 2Questions: 0Answers: 0
edited March 2012 in General
I'm using 'bServerSide' and a PHP script to formulate data for display, based on per-column filtering. I'd like to be able to send back various pieces of information about how the query was run to the client. Is there a way for me to intercept the JSON returned from my PHP script before or after it has been used to update my data table display? Thanks.

Replies

  • LiamMLiamM Posts: 2Questions: 0Answers: 0
    Seems I didn't look hard enough:

    http://datatables.net/forums/discussion/2891/how-to-use-the-server-side-callback-for-post-processing/p1
  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Yup - you found it :-). For anyone else, fnServerData is the way to do this, or you can listen for the 'xhr' event.

    Allan
This discussion has been closed.