unable to implement Individual column searching (text inputs)
unable to implement Individual column searching (text inputs)
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
Happy to take a look at a test case showing the issue.
Allan
hi Allan,
Have you any idea solution to this issue?
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
I will upload the code to some server, and will let you know.
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.
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
Thanks Allan,
I removed the
<colspan>
, but no luck.The list not created for tfoot in footer.
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
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