jQuery POST and JSONP fails

Issue #155 new
Manel Clos
created an issue

When trying:

$.ajax({url: url, type: 'POST', cache: false, dataType: 'jsonp', ....}

will fail because django-piston JSON emitter will only check in GET dict. Changing to:

    cb = request.GET.get('callback', request.POST.get('callback', None))

fixes the problem... does this bug belongs to django-piston, jQuery, or am I doing something wrong?

Comments (0)

  1. Log in to comment