JQuery Datatable issue with json object: Maximum call stack size exceeded
JQuery Datatable issue with json object: Maximum call stack size exceeded
Hi All,
Need help in resolving Jquery datatable issue.
I am using Jquery datatable (version 1.10.13) to generate HTML table using ajax call.
But every time I am trying to display the table I am getting below error in Chrome (56.0.2924.76 (64-bit))
Uncaught RangeError: Maximum call stack size exceeded
at RegExp.test (<anonymous>)
at Number.<anonymous> (jquery-1.12.4.js:10034)
at Function.each (jquery-1.12.4.js:370)
at buildParams (jquery-1.12.4.js:10033)
at buildParams (jquery-1.12.4.js:10055)
at buildParams (jquery-1.12.4.js:10055)
at buildParams (jquery-1.12.4.js:10055)
at buildParams (jquery-1.12.4.js:10055)
at buildParams (jquery-1.12.4.js:10055)
at buildParams (jquery-1.12.4.js:10055)
And no records are displayed though 8 rows have returned as resultset.
Screen Work flow.
1. User selects search Criteria and clicks search to get the results.
2. The resultset is wrapped in Json object and returned to JS callback method.
3. Callback method is used to render the JS datatable (version 1.10.13).
Inside callback method:
$('#divID).css('display','block');
$("#tableID").DataTable().destroy();
.$('#tableID).dataTable({..
..
........code for datatable config
...})
$('#tableID').DataTable().draw();
Any help would be much appreciated!!!
Replies
Any help will be really helpful guyz!!!
My guess would be an infinite loop invoking the callback.
I would recommend providing a link to your code showing the issue.
Kevin
I have this error too,
help!!!
Well, as mentioned above we would need to see your code. Please provide a link to your page or a test case replicating the issue for debugging.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin