Hi all,
More projects use AJAX nowadays. Django could help them more.
For example, FormView, could check if request.is_ajax_request(), and in
that case return a JSON dict for example:
{
'html': <the rendered HTML form without the layout>,
'messages': [<a list of messages if django.contrib.messages is
installed>],
'error_fields': [<perhaps a list of field names that did not validate>],
}
All generic views could do something like this. The point is to provide a
consistent API usable in AJAX.
This doesn't seem like much work, but for some reason I like this idea a
lot.
What do you think ?
I could work on a complete design document and documentation if you think
it's worth it.
Regards
--
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-developers?hl=en.