This document discusses advanced AJAX techniques in Drupal 7, including:
1) Performing AJAX actions on non-form events like timers, responding to AJAX requests, and binding AJAX behavior to links.
2) Modifying AJAX behavior and responses using JavaScript.
3) Using custom AJAX commands to manipulate the AJAX response.
4) Examples of integrating AJAX into Drupal for more interactive client-side experiences.
2. Summary
? Non-form related AJAX
? Responding to an AJAX request
? Bind AJAX behavior to a simple link
? In more than one way
? Modify this behavior via javascript
? Modify the AJAX response via javascript
? Use a custom response command
? Perform AJAX on non-traditional events like a
timer.
3. We are skipping #ajax
? This is the basic usage
? Plenty of examples in examples.module
? Too tied to the form id and cache
15. Wrapping up
? This framework can integrate into strong
javascript applications.
? Server can be used for storage, rendering and
decision making.
? Client can be more interactive.
? Framework can add additional CSS and
javascript to page automatically.