JQuery Datatable issue with json object: Maximum call stack size exceeded

JQuery Datatable issue with json object: Maximum call stack size exceeded

sajitvsajitv Posts: 2Questions: 0Answers: 0

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

This discussion has been closed.