AJAX allows for asynchronous communication between the client and server to make web applications more interactive. This enables richer applications with widgets by making GUI actions independent from calls to the server. While AJAX can be challenging for server-side developers, as the lead of Google Maps said, "If it doesn't kill you, it makes you stronger."
2. AJAX
● background conversation with server to make
application more interactive
– GUI actions are independent from calls to server
– Hence: Asynchronous JAvaScript XML
● Enables richer web applications with widgets &c
3. AJAX means pain
● Especially for server-side developers
● But, as the lead of Google Maps once said:
– “If it doesn't kill you, it makes you stronger”
5. Django & AJAX wrap-up
● Main type of integrations
– Call a Django service or view in the background
● Used JQuery. Many other frameworks (Prototype,
Mootools, &c) offer same functionality – wrapper around
underlying XMLHttpRequest
– Use Django serializers, e.g., directly into JSON
– Bind widgets to Django-based JSON view as data-
source
– Add client-side logic, e.g., chaining select boxes in
forms