Version 34 (modified by 14 years ago) ( diff ) | ,
---|
Question. Does django help developers by writing some of the AJAX code, as it helps them with HTML and SQL? If not, is there sample code to suggest a path? AJAX may not be needed for newspaper-type sites, but quite a few potential django sites need the snappy and small-grained interface that AJAX provides. Write me down as someone who would like to see AJAX support ... and, of course, feel free to delete this comment if it's ill-placed or irrelevant. -- Dan Kelley
In case you're watching this page, I suggest taking this to the mailing list, as the Wiki isn't exactly a discussion venue. It's available on Google Groups: http://groups.google.com/group/django-users/ -- there are already a few good threads on AJAX support. Django already provides serializers to JSON and XML. Django allows you to easily pick your own JS toolkit.
Resources
- Somebody said this link: http://www.kelvinism.com/tech-blog/simple-ajax-django/
- Another similar link (but more indepth) is http://www.willarson.com/blog/?p=36
- Reusing forms to do AJAX validation: http://toys.jacobian.org/presentations/2007/oscon/tutorial/#s67
- Doing server-side form validation with Dojo: (old-school style): AJAX/Dojo/RefactoredFormSubmit
- Easy to use AJAX libraries for Django: http://www.dajaxproject.com
- JSONResponse like HttpResponse in views: http://chronosbox.org/blog/jsonresponse-in-django/