jquery.dataTables.min.js:94 Uncaught RangeError: Maximum call stack size exceeded

jquery.dataTables.min.js:94 Uncaught RangeError: Maximum call stack size exceeded

niranjan528niranjan528 Posts: 2Questions: 1Answers: 0

Hello Everyone ,
I need one help in datatables , Can you please help me on these.
Am using jquery bootstrap datatables in php codeigniter framework,
I have 20k records , while show all records its showing, am trying to download excel and csv file those 20k records. But unable to download getting this error "jquery.dataTables.min.js:94 Uncaught RangeError: Maximum call stack size exceeded",
Upto 2k records its working download option.

    table = $('#example').DataTable({ 
                dom: 'Bfrtip',
                buttons: [
                    'copyHtml5',
                    'excelHtml5',
                    'csvHtml5',
                    //'pdfHtml5',
                    'pageLength'
                ],
                "pageLength": 25,
                "processing": true, //Feature control the processing indicator.
                "serverSide": true, //Feature control DataTables' server-side processing mode.
                "order": [], //Initial no order.
                "aoColumnDefs": [{ "bSortable": false, "aTargets": [0]}],
                "bInfo": false, //niranjan chowdam added for remove pagination numbers 
                lengthMenu: [
                    [ 10, 25, 50, -1 ],
                    [ '10 rows', '25 rows', '50 rows', 'Show all' ]
                ],
                // Load data for the table's content from an Ajax source
                "ajax": {
                    "url": "http://111.101.60.106:8090/srx/voucher/credit_vouchers_datatable",
                    "type": "POST",
                    "data": function ( data ) {

                        data.FromDate   = $('#FromDate').val();
                        data.ToDate     = $('#ToDate').val(); 
                    }
                },

                //Set column definition initialisation properties.

            });

Can any one please help on this issue.
Tried so many ways finally not working any solution.

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Nothing looks obviously wrong there! We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

Sign In or Register to comment.