Can somebody show example how to send via AJAX DELETE HTTP method
instead of POST, like this:
   $.post( '/filial/del/', {city:$.trim(city)} );

but DELETE.

I tried:
  $.ajax( {url:'/filial/del/', type:'DELETE',
data:'city='+encodeURI($.trim(city))} );

and:
  $.ajax( {url:'/filial/del/', dataType:'json', type:'DELETE', data:
{'city':$.trim(city)}} );

but in django vie see that no any 'city' in POST or GET! Is this
possible? I don't see any DELETE in jQuery source...

Reply via email to