Maybe it's triggering the CSRF validation? What error message are you
getting exactly from the server?

On Sat, Jan 17, 2015 at 10:37 AM, Erwin Sprengers <sprenge...@gmail.com>
wrote:

> Hello,
>
> POST works fine for me,  I use the following django code :
>
> at the end of the view :
>
> return HttpResponse(simplejson.dumps(response_dict),
> mimetype='application/javascript')
>
> and following ajax code :
>
>        $.ajax({
>           url: '/ajax/is_key_mm/',
>           type: 'POST',
>           async:   false,
>           data: {node : node.id, slug : "{{article_slug}}"},
>           success: function(Result) {
>                  if (Result.substring(1,4)=="NOK") {
>                         console.log("not key");
>                         key_label = "----";
>                  }
>                 }
>           });
>
>
>  --
> 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 http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/006eb711-5f5d-4903-a91b-c68e39a45d29%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/006eb711-5f5d-4903-a91b-c68e39a45d29%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALn3ei0pUJzrTJfwWC16ieJ8EK8ONgHe4%2B1BWQrQtjwVd9d0NA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to