General setup

General setup

MattMatt Posts: 1Questions: 0Answers: 0
edited November 2010 in General
Hi

I´m going to use datatables together with php and a mysql database. I had some problem with the datatable initialisation. So I went back to basic and tried with the static table sample from datatables.net/usage.

This is my sample code and the DataTables-1.7.4 folder is in the same folder as this test.html.

Could someone give me a push in the right direction and tell me why this does not work?

[code]










$(document).ready(function() {
$('#example').dataTable();

} );







Column 1
Column 2
etc




Row 1 Data 1
Row 1 Data 2
etc


Row 2 Data 1
Row 2 Data 2
etc






[/code]

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Your HTML isn't valid which probably won't help. For example you are missing a body tag. Try running it through the validator: http://validator.w3.org/ . Beyond that, look for any Javascript errors in Firebug.

    Allan
This discussion has been closed.