querystring malformed on ajax get request
querystring malformed on ajax get request
![Focker513](https://secure.gravatar.com/avatar/920812e5418cfc29f5b738b783fac7bd/?default=https%3A%2F%2Fvanillicon.com%2F920812e5418cfc29f5b738b783fac7bd_200.png&rating=g&size=120)
I have a table defined like so:
var Id = parseInt($("#_Id").val()||0);
var table = $('#tblItems').DataTable({
"processing": false,
"serverSide": true,
"autoWidth": false,
"ajax": {
"url": "GetItemsById",
"type": "GET"
"data": { "id": Id }
},
"columnDefs": [
{
"targets": [0],
"visible": false,
"searchable": false
},
{
"targets": [1],
"visible": false,
"searchable": false
}],
"columns": [
{ "data": "Id" },
{ "data": "ItemId" },
{ "data": "ItemName" }
]
});
And when tracing the submission, the query string does not include the Id parameter but begins with draw and is populated with a ton of characters. Is there a specific configuration or setting that I am missing on the data table definition?
Here is a snippet of the query string
```
This discussion has been closed.