Getting Extra variables in response from server side

Getting Extra variables in response from server side

gunjannigamgunjannigam Posts: 8Questions: 0Answers: 0
edited August 2012 in General
Hi,
I want to sent some extra variables from my server script to client side. I referred http://datatables.net/usage/server-side but couldn't find answer to my query. I have added some extra variables in the json response alongwith iTotalRecords, sEcho and iTotalDisplayRecords. The json output contains values of two extra variables. How can I access the values of these variables in my client side javascript

Replies

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    Three methods:

    1. Use fnServerData .
    2. Listen for the 'xhr' event which will give you the JSON object returned
    3. Use fnDrawCallback and get the jqXHR object from the settings object (first parameter passed into fnDrawCallback ).

    Allan
This discussion has been closed.