I have a simple list of records in an HTML table with a delete link for each row. The delete link shoots off an AJAX post request to a fixed url that looks like: \"/delet
Sounds like you're getting an HTTP 411 error.. This error can happen if you're sending a POST
request without any data
.
To fix this, add an empty object ({}
) to the data
property to your requests:
$.ajax({
url: url,
type: 'POST',
data: {}, // <- set empty data
success: function(data, textStatus) {
// do something
}
});