I tried to send an ajax
delete
request to this url
But getting a pop up error.
$( "#dialog-confirm" ).dialog({
resizable: false,
height:140,
modal: true,
buttons: {
"Delete": function() {
//To show the loader
//Ajax call to delete the data
$.ajax({
type: "DELETE",
url: window.location.pathname + id + '/centers/' + c,
contentType: 'application/html; charset=utf-8',
data: {
dc : dc,
},
success: function(){} }); });
Error is
This web page is being redirected to a new location. Would you like to resend the form data you have typed to the new location?
https://my2.v2.domain.com/grd/net/lb/checker/Env2/centers/11
(This is a demo url to which i am sending.)
Thanks in advance