Familiar error: dataTable is not a function
Familiar error: dataTable is not a function
Hello all,
I've recently removed the resources plugin from a grails project (clashes with a necessary plugin), and my datatables plugin has broken. I am running into an error referred in the title, which seems quite common with datatables, the 'dataTable is not a function' error. Having gone through previous answers, I believe I have ruled out the following
- Jquery has been loaded
- Jquery is loaded only once
- Datatables is loaded
I have tried including datatables both through the grails plugin and by linking to it the regular way.
The datatables debugger did not offer anything meaningful (http://debug.datatables.net/avuwux), except that the number of tables is zero (which is odd, because the table name hasnt changed, dont know why it didnt find the table if it was working before).
The (relevant) source for the page is below (data gets loaded by functions through ajax calls, not included as the error happens during table initialisation):
[code]
$(document).ready(function() {
$('#modelTable').dataTable();
} );
.....
[/code]
I am afraid Im not able to link to a page showing the problem, as it relies on ajax calls to services/databases very much tied to our particular infrastructure, and has not been released publically yet. I appreciate that this probably makes support tedious, but I am hoping the debugger report is more meaningful to yo than it is to me.
regards
I've recently removed the resources plugin from a grails project (clashes with a necessary plugin), and my datatables plugin has broken. I am running into an error referred in the title, which seems quite common with datatables, the 'dataTable is not a function' error. Having gone through previous answers, I believe I have ruled out the following
- Jquery has been loaded
- Jquery is loaded only once
- Datatables is loaded
I have tried including datatables both through the grails plugin and by linking to it the regular way.
The datatables debugger did not offer anything meaningful (http://debug.datatables.net/avuwux), except that the number of tables is zero (which is odd, because the table name hasnt changed, dont know why it didnt find the table if it was working before).
The (relevant) source for the page is below (data gets loaded by functions through ajax calls, not included as the error happens during table initialisation):
[code]
$(document).ready(function() {
$('#modelTable').dataTable();
} );
.....
[/code]
I am afraid Im not able to link to a page showing the problem, as it relies on ajax calls to services/databases very much tied to our particular infrastructure, and has not been released publically yet. I appreciate that this probably makes support tedious, but I am hoping the debugger report is more meaningful to yo than it is to me.
regards
This discussion has been closed.
Replies
Please close the thread.