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 [email protected].
To post to this group, send email to [email protected].
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.
For more options, visit https://groups.google.com/d/optout.