The JSON method mentioned above should work fine.
Two methods that might be less fragile than code generation: - Hidden form inputs. Less fragile because the 'escape' filter should allow you to safely dump data into attribute values in your template, I think. Then use form.elements or MochiKit's formContents. - MochiKit's loadJSONDoc and friends (make a second request asynchronously). I always make a 'utils' module in my projects with a JsonResponse class that serializes with simplejson and sets the appropriate mime-type. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---