Monday, March 2, 2015

Complex Querys And Results Response Processing/Formatting

I'm trying to submit a series of ajax requests from some server code. When I get a response back from each request I'm trying to add that response to a list.
Once all of the requests have been sent and all of their responses received and added to the list, then I want to send the final list back to an html page for viewing by a user.
My problem is I can't seem to get the JSON formatting correct either before I add each piece of response data to the list, or right before I return the list in my HttpResponse so then when it gets sent back to the client page my jQuery/javascript cannot parse the data correctly and it fails.

Any help would be greatly appreciated.

Thanks.

Henry
    

--
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+unsubscribe@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/ec9be9f3-dd43-4c5c-8649-32c27eb01998%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment