Thanks Jorge,

Dajax looks very useful. Ill do it with Json though until Dajax
becomes mainstream. Thanks.

On Jun 2, 10:47 am, Jorge Bastida <neo2...@gmail.com> wrote:
> Hello Marc,
>
> You can render a template into an string.
>
> from django.template.loader import render_to_string
> my_template = render_to_string('template.html',{'some':'data'})
>
> If you want to send the list of objects to the browser you can use
> serialization into 
> json:http://docs.djangoproject.com/en/dev/topics/serialization/#id2
>
> In other hand, i'm currently developing Dajax 
> (http://code.google.com/p/dajaxproject/) it will help you using ajax in
> django. For example, for sending serialized objects to the browser and use
> it as you want in JS.
>
> Thanks
>
> 2009/6/2 Aldo <marcwar...@gmail.com>
>
>
>
> > Hey,
>
> > I have some ajax running on my pages.
>
> > I want to have it pass back some objects. However, I am unsure if I
> > can pass a list of objects back. So far I have only ever passed back
> > raw xml or text. Can objects be passed and then iterated via the html
> > template?
>
> > Thanks
>
> --
> neo2001[at]gmail.com
> jorge[at]thecodefarm.com
> neo[at]art-xtreme.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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