pagination and search not loading

pagination and search not loading

Mike_IrvineMike_Irvine Posts: 2Questions: 1Answers: 0

Link to test case: See attached HTML
Debugger code (debug.datatables.net):
Error messages shown: No errors
Description of problem:

Pagination and search do not load on the table. However one of the cells contains form tried replacing it with a text value no change.
Note that the hosting Web server dynamically generates the HTML table in these pages.

Does anyone have any idea how to correct it?

Answers

  • kthorngrenkthorngren Posts: 21,321Questions: 26Answers: 4,948

    Looks like you have two files uploaded with the same name. The first one states that the file is not found. It will be difficult to help debug just by looking at source code. A test case showing the issue will be very useful.
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    It sounds like the Datatables features aren't being applied to the table. I would start by looking for errors in the browser's console. Let us know what you find.

    Kevin

  • Mike_IrvineMike_Irvine Posts: 2Questions: 1Answers: 0

    https://live.datatables.net/dibaxovi/1/edit?html,css,js,console,output

    No errors in my Chrome browser inspector but this edited version also doesn't have a pagenation search etc.

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin

    Uncaught TypeError: local[(row + rowspan)][column] is undefined

    Is shown in the console for me. And that will happen if the header, footer and body columns of the table don't all match up.

    Indeed, looking at the HTML you have empty rows in the thead and tfoot:

                                        <thead>
                                            <tr>
                                            <th> </th>
                                            <th>Company</th>
                                            <th>Members</th>
                                             <th>WebLocs</th>
                                            <th>Edit Company</th>
                                            </tr><tr>
                                          </tr></thead>
                                          <tfoot>
                                            <tr>
                                            <th> </th>
                                            <th>Company </th>
                                            <th>Members</th>
                                            <th>WebLocs</th>
                                            <th>Edit Company</th>
                                            </tr><tr>
                                          </tr></tfoot>  
    

    Fixing that allows the example to run: https://live.datatables.net/dibaxovi/2/edit .

    Allan

Sign In or Register to comment.