Quantcast
Channel: DataTables 1.10 — DataTables forums
Viewing all articles
Browse latest Browse all 2364

Ajax data parameters not working

$
0
0

I'm trying to populate a datatable with server side processing and have set the serverSide option to true with the following ajax configuration.

        ajax: {
            url: 'get-data',
            type: 'get',
            contentType: "application/json",
            dataSrc: function(d) {
                return d.data;
            },
            error: function(jqXHR, textStatus, errorThrown) {
                console.log(jqXHR, textStatus, errorThrown);
            },
        },

However, the only input my get-data API receives is {"\/get-data":null}. I'm not sure what I'm doing wrong as I thought there should be a number of automatic sent parameters including "start" and "length". Does anyone know what I'm doing wrong? Any help is much appreciated! Thanks in advance!


Viewing all articles
Browse latest Browse all 2364

Trending Articles