Richard, it still doesn't seem like Django can iterate through json.
All we can do is stuff data into div tags. In the "{% if form %}"
statement of yours, is "form" the object that you got from "var myobj
= response_obj.form;" ? If it is, then you might have something
special going on there that I can learn from.

But meanwhile, I've tried to switch from serializers to simplejson,
and it's giving me a "Error: bad http response code:500" everytime,
whereas serializers give me the same error only 50% of the time (and
this too is BAD!).

When I'm using serializers, the only difference between getting an
error not depends on which objects I'm getting. For example, I get an
error when I use this code:
def ajax_form_test(request):
  data = serializers.serialize("json", Order.objects.all())
  return HttpResponse(data, mimetype="application/javascript")

but no errors when I use this code:
def ajax_form_test(request):
  data = serializers.serialize("json", Manager.objects.all())
  return HttpResponse(data, mimetype="application/javascript")

And when I use simplejson, I ALWAYS get errors no matter what. The
code is as simple as this:
def ajax_form_test(request):
  data = Manager.objects.all()
  return HttpResponse(simplejson.dumps(data), mimetype="application/
javascript")

Help me solve this bizzare mystery!

Thanks,

robo


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to