another Cannot Reinitialise Datatable. error

another Cannot Reinitialise Datatable. error

Frankbot1298Frankbot1298 Posts: 2Questions: 0Answers: 0
edited May 2014 in General
Hello

I managed to merge two functions together on my sample database: http://sakabot.com/DataTables/p4.html

As you can see, I am getting a 'Cannot Reinitialise Datatable.' error. I am pretty sure there is a conflict going on in line 17/18:

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

and line 101:

$(document).ready(function() {
/* Initialise the DataTable */
var oTable = $('#example').dataTable( {
"oLanguage": {
"sSearch": "Search all columns:"

Any help would be appreciated. I tried different ways to merge the two to no avail.

Thank you much.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    You need to combine the two initialisations into a single constructor. See http://next.datatables.net/manual/tech-notes/3 for more information.

    Allan
This discussion has been closed.