Hi,
> I am able to send JSON data from Django to my javascript function, but > I would like to iterate JSON by using the Django template language. Is > this possible at all? No, it's not. Javascript works on the client side and doesn't know anything about the way the server did generate the response. But nothing prevents you to iterate your data with regular javascript, ie. stuff like : for (i = 0; i < data.length; i++) { // do something. } In this case, you may want to build your json object by hand with simplejson.dumps() instead of using serializers.serialize(), it will give you more flexibility. Regards, olivier --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---