Getting Extra variables in response from server side
Getting Extra variables in response from server side
gunjannigam
Posts: 8Questions: 0Answers: 0
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
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
This discussion has been closed.
Replies
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