Cool. Thanks Shawn!

On Dec 11, 7:32 pm, Shawn Milochik <sh...@milochik.com> wrote:
> You don't need to transfer this to JavaScript once it's in JSON, which is a 
> JavaScript object.
>
> If you're using AJAX, it's dead easy.
>
> #use this in your view
> return HttpResponse(simplejson.dumps(employees), mimetype="application/json")
>
> Then, in your JavaScript, you can use JSON syntax to refer to the items and 
> attributes in your object.
>
> Here are a couple of examples I posted recently, showing a GET and POST 
> example:
>
> http://groups.google.com/group/django-users/browse_thread/thread/45ba...
>
> Shawn

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


Reply via email to