Getting alert while trying to delete using jQuery Ajax delete
<p>I am getting the following popup while trying to delete a value. I'm using jQuery Ajax to delete the value. Programming language I use is python2.7 and the framework is Django 1.3.2</p>

<p>My code is as follows:</p>

<pre><code>$.ajax({
    type: "DELETE",
    url: window.location.pathname + id + '/data-centers/' + dc,
    contentType: 'application/html; charset=utf-8',
    data: {
        dc : dc,
    },
    success: function(){
        alert("success");
    }
    etc...
</code></pre>

<p>When I confirm to delete the value I'm getting the following popup from the JavaScript saying:</p>

<pre><code>"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?
</code></pre>

<p>And in the Ajax header I can see following (it's trying to redirect to other location, but don't know why):</p>

<pre><code>Connection  Keep-Alive
Content-Encoding    gzip
Content-Length  251
Content-Type    text/html; charset=iso-8859-1
Date    Tue, 27 Nov 2012 13:53:44 GMT
Keep-Alive  timeout=5, max=100
Location    http://www.test.com/403/test-403.html
Vary    Accept-Encoding
Request Headers
Accept  */*
Accept-Encoding gzip, deflate
Accept-Language en-us,en;q=0.5
Connection  keep-alive
Content-Length  12
Content-Type    application/html; charset=utf-8
</code></pre>

<p>This only happens when I try to use DELETE.</p>
