error 500 on search

error 500 on search

kalagarkalagar Posts: 3Questions: 2Answers: 0

hello. when I want to filter my table, the browser gives me an alert http://datatables.net/tn/7.
this is my code :

$("#grid").dataTable({
            "processing": true, // control the processing indicator.
            "serverSide": true, // recommended to use serverSide when data is more than 10000 rows for performance reasons
            "info": true,   // control table information display field
            "stateSave": true,  //restore table state on page reload,
            "searching": true,
            "language": {
                "url": "/translate/datatables.fa-IR.json"
            },
            "lengthMenu": [[10, 20, 50, -1], [10, 20, 50, "All"]],    // use the first inner array as the page length values and the second inner array as the displayed options
            "ajax": {
                "url": serviceBase + "/Auth/Admin/SearchOrders2/",
                "type": "GET",
                'beforeSend': function (xhr) {
                    xhr.setRequestHeader("Authorization", "Bearer " + localStorageService.get("authorizationData").token);
                }
            },
            "columns": [
                { "data": "customerContact", "orderable": true },
                { "data": "isDone", "orderable": true },
                {
                    "mRender":
                        function (data, type, row) {
                            var xxx = $scope.name1 = $filter("jalaliDateFromNow")(row["createdDate"]);
                            return "<span>" + $filter("jalaliDateFromNow")(row["orderCreationTime"]); +'</span>';
                        }, "orderable": true
                },
                { "data": "totalPrice", "orderable": true },
                { "data": "count", "orderable": true },
                { "data": "description", "orderable": true },
                {
                    "mRender": function (data, type, row) {
                        return '<button class="btn btn-sm btn-circle green tooltips" disabled="disabled"><i class="fa fa-check"></i><span>جزئیات</span></button>'
                    },
                    "orderable": false
                }
            ],
            "order": [[0, "desc"]]
        });

which part of my code is wrong?

Answers

  • kthorngrenkthorngren Posts: 20,667Questions: 26Answers: 4,836

    This error is generated by your server. Start by looking at the server's log to find the error. This is mentioned in the link provided in the error.

    Kevin

This discussion has been closed.