Error when sending heading data to server-side.

Error when sending heading data to server-side.

GlyndwrGlyndwr Posts: 117Questions: 32Answers: 0

http://live.datatables.net/fetilaco/1/edit

I am trying to send the data entered into the heading search to the server-side and am getting the error "memberTable.column is not a function". I have followed this example: https://datatables.net/extensions/fixedheader/examples/options/columnFiltering.html

Kind regards,

Glyn

Answers

  • allanallan Posts: 61,446Questions: 1Answers: 10,055 Site admin

    Hi Glyn,

    See this FAQ.

    The key here is that:

    var memberTable = $('#youthMemberTable').dataTable( {
    

    is giving you a jQuery object in return. You want to use $(...).DataTable(...) to get a DataTables API instance in return.

    Allan

  • GlyndwrGlyndwr Posts: 117Questions: 32Answers: 0

    OK, it took me a while before I noticed "D" instead of "d". This now works. I will now post the question I wanted after getting this working.

    Kind regards,

    Glyn

This discussion has been closed.