The dictionary to serialize - form.errors
e.g. view -
form = PersonalForm(request.POST)
# errors = serializing function which serializes form.errors
data = errors
#Is this the way to pass data? Not quite sure....
return HttpResponse(data,mimetype="application/json")
e.g. javascript (on success of request) -
function(responseData) {
$('#errors_form').html(responseData);
},
Now how do I do this my friends?