$.post( "ajax/test.html", function( data ) {
 $( ".result" ).html( data );
});


Em terça-feira, 15 de dezembro de 2015 20:25:12 UTC-2, larry....@gmail.com 
escreveu:
>
> I am sending an ajax POST request like this: 
>
> $.ajax({ 
>     url: url, 
>     method: 'POST', 
>     dataType: "json", 
>     data: { 
>         recipe: recpie 
>     } 
> }) 
>
> But the request is being sent as a GET: 
>
> Request URL: http://127.0.0.1/api/update_measbox?recipe=MALBHDPOR 
> Request Method: GET 
> Status Code:200 OK 
> Remote Address:127.0.0.1:80 
>
> Any ideas as to why this is happening and how I can get it sent it as a 
> POST? 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/89407d5d-da38-4361-8d15-bf91f73743a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to