Initialize dataTables

Initialize dataTables

mollpetemollpete Posts: 1Questions: 0Answers: 0
edited December 2013 in DataTables 1.9
Hello, I`m new to dataTables and implemented it inside tabs with two tables on a page. Now there are two issues:
1. The first table (id=\"vereinschamps\") is shown together with the lenghtfield and search field but it is not initializing correct, means that in the beginning the lenght of 10 is not taken effect. You have to click e.g. to sort a column and then the table is showing also the pagination buttons correctly and
only 10 lines are shown according to the lenght parameter.

2. The second table (id=\"teamsuccess\") is not initializing at all.

When I take out the initializing call for the first one, then the second one is initializing. Looked for me like if I can only have one instance of datatables which is according to your documentation not so. So I´m at the end of my wisdom. Can you help me out?

When I start the debugger the message is "Data tables is not available on this page".

Here is the example page: www.tischtennis-unterreichenbach.de/verein.php
Sorry for my poor english.

Replies

  • allanallan Posts: 63,494Questions: 1Answers: 10,470 Site admin
    There is a script error on the page (actually there are serval, but this is the only DataTables one I see):

    > [Error] TypeError: 'undefined' is not a function (evaluating 's.charCodeAt( s.length-1 )')

    This error occurs because you are using an old version of jQuery UI. They used a private method in jQuery which broke various things. Update your jQuery UI and it should work.

    Allan
  • mollpetemollpete Posts: 1Questions: 0Answers: 0
    Sorry for my late reply. It works perfect now. Thx and happy christmas.
This discussion has been closed.