Unknown Parameter 0
Unknown Parameter 0
MarcJ
Posts: 4Questions: 0Answers: 0
Hello,
I'm receiving the "Unknown Parameter 0" error, however I don't get the error on the first initialization. My document can contain multiple datatables, however this particular page only has one.
Here is my debug data: http://debug.datatables.net/anusic
I have a dropdown one of the columns. When the dropdown changes, the onchange event is fired. Here is where I get the error:
$(document).off("change", '.companyContact');
$(document).on("change", '.companyContact', function (e) {
var oTable = $(this).parents('table').dataTable();
});
Thanks for any guidance.
I'm receiving the "Unknown Parameter 0" error, however I don't get the error on the first initialization. My document can contain multiple datatables, however this particular page only has one.
Here is my debug data: http://debug.datatables.net/anusic
I have a dropdown one of the columns. When the dropdown changes, the onchange event is fired. Here is where I get the error:
$(document).off("change", '.companyContact');
$(document).on("change", '.companyContact', function (e) {
var oTable = $(this).parents('table').dataTable();
});
Thanks for any guidance.
This discussion has been closed.
Replies
Allan
Allan
I've tried with an empty table that only had the dropdown, and it still gave the same error. The odd thing is, after the initial error, everything works correctly. That is because after the error, the datatable is re-rendered but with slight differences which allows it to work correctly. I'm not sure why the table is being re-rendered when all that I'm doing is trying to get an instance of the existing datatable.
Allan