jayzakung / jquery-datatables-column-filter

Automatically exported from code.google.com/p/jquery-datatables-column-filter
0 stars 0 forks source link

Date Range Filter not work - Error: "DataTables warning: JSON data from server..." #99

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. To load the page
2. The error: "DataTables warning: JSON data from server could not be parsed. 
This is caused by a JSON formatting error." is thrown

What is the expected output? What do you see instead?
My dataTable configuration is:

            var oTable;
            $(document).ready(function(){
                $.datepicker.regional[""].dateFormat = 'yy-mm-dd';
                $.datepicker.setDefaults($.datepicker.regional['']);

                if (typeof oTable == 'undefined') {
                    oTable = $('#tablaEgresosCaja').dataTable({
                        "oLanguage": {
                                "sUrl": "/ptv/lib/mediaTable/es_label.txt"
                        },
                        "bProcessing": true,
                        "bServerSide": true,
                        "iDisplayLength": 150,
                        "bLengthChange": false,
                        "sAjaxSource": "tablaEgresosCaja.php"
                    }).columnFilter({ sPlaceHolder: "head:before",
                                      aoColumns: [ { type: "date-range", sRangeFormat: "Entre {from} y {to} fecha"}, null, null, null, null]
                                    });                 
                }
                else
                {
                    oTable.fnClearTable( 0 );                   
                    oTable.fnDraw();
                }
            });

The error is registered on the 741 line of the 
jquery.dataTables.columnFilter.js (fnServerDataOriginal(sSource, aoData, 
fnCallback, oTable.fnSettings()); //TODO: See Issue 18).-

What version of the product are you using? On what operating system?
jquery.dataTables.js     --> 1.8.2
jquery.dataTables.min.js --> 1.8.2
jquery.dataTables.columnFilter.js --> 1.5.0

Do you have any idea ?
Thanks!. 

Original issue reported on code.google.com by luanacas...@gmail.com on 26 Sep 2012 at 1:02