unable to implement Individual column searching (text inputs)

unable to implement Individual column searching (text inputs)

nadeem14375nadeem14375 Posts: 5Questions: 1Answers: 0

I am trying to implement the search but unable to do it.

following is the error:

jquery.dataTables.min.js:122 Uncaught TypeError: Cannot read property 'nodeName' of null
at jquery.dataTables.min.js:122
at $a (jquery.dataTables.min.js:109)
at r.<anonymous> (jquery.dataTables.min.js:121)
at r.iterator (jquery.dataTables.min.js:99)
at r.<anonymous> (jquery.dataTables.min.js:121)
at r.columns (jquery.dataTables.min.js:102)
at r.<anonymous> (jquery.dataTables.min.js:126)
at r.column (jquery.dataTables.min.js:102)
at r.<anonymous> (dataTables.responsive.min.js:18)
at r.filter (<anonymous>)

Answers

  • allanallan Posts: 63,461Questions: 1Answers: 10,466 Site admin

    Happy to take a look at a test case showing the issue.

    Allan

  • nadeem14375nadeem14375 Posts: 5Questions: 1Answers: 0

    hi Allan,
    Have you any idea solution to this issue?

  • allanallan Posts: 63,461Questions: 1Answers: 10,466 Site admin
    edited November 2017

    I might if you could link to a test case showing the issue as I requested above. A test case will let me debug it. At the moment, there isn't much information to go on! That is why the forum rules require a test case.

    Allan

  • nadeem14375nadeem14375 Posts: 5Questions: 1Answers: 0

    I will upload the code to some server, and will let you know.

  • nadeem14375nadeem14375 Posts: 5Questions: 1Answers: 0

    hi Allan,

    Sorry, I am unable to upload my code to some server to show you. Let me upload the file to this forum.

    My php file is attached. I am using codeigniter.

  • allanallan Posts: 63,461Questions: 1Answers: 10,466 Site admin

    If you have no data, the colspan will cause a problem. DataTables doesn't currently allow for colspan in a table.

    That's the only thing that looks wrong to me from the code. The error you are seeing is normally due to a difference between the number of columns defined in Javascript (which you aren't using), the header, footer and the body. They all need to match.

    Allan

  • nadeem14375nadeem14375 Posts: 5Questions: 1Answers: 0

    Thanks Allan,

    I removed the <colspan>, but no luck.

    The list not created for tfoot in footer.

  • allanallan Posts: 63,461Questions: 1Answers: 10,466 Site admin

    Could you do a "View source" on the page and then copy and paste the generated HTML for the table into a reply here so I can see what the server is generating please?

    Allan

  • allanallan Posts: 63,461Questions: 1Answers: 10,466 Site admin

    Actually - thinking about it more, I don't think that is going to let me resolve this. I really would need to be able to see the page so I can debug it directly.

    Perhaps you can use JSFiddle or http://live.datatables.net with your generated HTML to produce a test case.

    Thanks,
    Allan

This discussion has been closed.