-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataTables error if multiple tables are loaded from different functions #411
Comments
Hi, Please provide a link to a test case |
http://jsfiddle.net/wynstep/fxntzdsu/ This is a working example of the bug The bug is affecting also "multiselect_cust_fun" Thank you! I hope you fix it soon ;-) |
@wynstep your test file won't load, you can paste it into the javascript box in jsfiddle or place it on some other domain / public hosting |
@vedmack sorry, my server went down. I don't know why but functions does not work into the javascript box in jsfiddle. In any case, when it will go up again, the bug is reproduced! Thanks |
http://jsfiddle.net/wynstep/fxntzdsu/ Okay, thanks for the suggestion. Now this version has the bug inside. It could be something related to the jquery version? |
Hello everyone,
I ask help for a bug I cannot solve. At the moment I call a function to create a DataTable with the respective yadcf associated
function LoadPapersTable() {
var papersTable = $('#papers').DataTable( {
"order": [[ 4, "asc" ]],
"processing": true,
"serverSide": false,
"ajax": {
"url":"scripts/server_processing_literature.php",
"type":"post"
},
"columnDefs": [
{
"targets": [ 5 ],
"visible": false
},
]
});
Then, I call another function:
function LoadEstimateDataTable() { var estimate = $("#estimate").DataTable(); }
Despite on loading the second table the search bar and the style seems okay (Datatables loaded), nothing is working. The table is not searchable, sortable or no pagination appear, except when I change the number of visualised items (10, 25,100)
In the browser the error says
TypeError: obj.table is not a function. (In 'obj.table()', 'obj.table' is undefined)
Could you please help me? Thank you
UPDATE The bug appears just when I put "range_date" as filter of the DataTable
The text was updated successfully, but these errors were encountered: