Table with style showing but no functions

Table with style showing but no functions

RoberthRoberth Posts: 2Questions: 2Answers: 0

A PHP script gets the data from a MySQL database and then echoes a html table which I want to have the DataTables functions.

But my problem is that with this js:
$(document).ready(function() { $('#team_players').dataTable( { } );} );
gives me a DataTable styled table but without any functions (shown here: http://www.coachfloorball.com/view-players2/ )

But on the other hand with this js: $(document).ready(function() { $('#team_players').dataTable( { "serverSide": true, } );} );
gives me the look of a fully functioning DataTables but nothing really works and also the "Invalide JSON response" warning (shown here: http://www.coachfloorball.com/view-players/ )

What am I doing wrong? Should I add something to the js script?

This discussion has been closed.