jquery; django; parsing httpresponse

Posted by Grinart on Stack Overflow See other posts from Stack Overflow or by Grinart
Published on 2010-05-27T20:09:58Z Indexed on 2010/05/27 20:21 UTC
Read the original article Hit count: 227

Filed under:
|
|

hi_all()

I have a problem with parsing http response.. I try send some values to client

>>>>return HttpResponse(first=True,second=True)

when parsing:

$.post('get_values',"",function(data){
                alert(data['first']); //The alert isn't shown!!!
            });

what is the right way to extract values from httpresponse

maybe I make a mistake when create my response..

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about django