Custom json ouput parameter

Custom json ouput parameter

doenikoedoenikoe Posts: 2Questions: 0Answers: 0
edited March 2013 in General
Hi there,,

Can someone help me ? i need to add more custom parameter to my datatables. is it possible ? so the output could be like this :

[quote]
iTotalRecords : 100,
iTotalDisplayRecords : 100,
aaData : [array_of_aaData],
my_param : [array_of_my_parameter]
[/quote]

And if it's possible to create the output like above, how to read it with jquery ?

Any help will be very appreciate. Thank you so much :)

Replies

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    Sure - just add your parameter to the data and use the `xhr` event to do something on the xhr: http://datatables.net/docs/DataTables/1.9.4/#xhr

    Allan
  • doenikoedoenikoe Posts: 2Questions: 0Answers: 0
    Thank you so much allan,, it works :)
This discussion has been closed.