Hi,
I'm using this code to create a response to an Ajax GET from a Dojo
html page:

@json_response
def index_json(request):
    ret = {'data': [dict(name='Gary', age='24'),
               dict(name='Shane', age='29')]}
    return ret

The actual text sent to the client is this:

{}&&{"data": [{"age": "24", "name": "Gary"}, {"age": "29", "name":
"Shane"}], "success": true}

Where did that leading {}&& come from and what does it mean?

My javascript tries to process the response object and gets undefined
length.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to