This example demonstrates some basic AJAX concepts.
General documentation is available at Form API Reference and AJAX Framework documentation.
Parent topics
File
- modules/
examples/ ajax_example/ ajax_example.module, line 7 - Hook implementations for the AJAX Example module.
Functions
Name | Location | Description |
---|---|---|
ajax_example_autocheckboxes |
modules/ |
Form manipulation through AJAX. |
ajax_example_autocheckboxes_callback |
modules/ |
Callback for autocheckboxes. |
ajax_example_autotextfields |
modules/ |
Shows/hides textfields based on AJAX-enabled checkbox clicks. |
ajax_example_autotextfields_callback |
modules/ |
Callback for autotextfields. |
ajax_example_config_info |
modules/ |
Implements hook_config_info(). |
ajax_example_dependent_dropdown |
modules/ |
AJAX-based dropdown example form. |
ajax_example_dependent_dropdown_callback |
modules/ |
Selects just the second dropdown to be returned for re-rendering. |
ajax_example_intro |
modules/ |
A basic introduction page for the ajax_example module. |
ajax_example_menu |
modules/ |
Implements hook_menu(). |
ajax_example_render_link |
modules/ |
Demonstrates a clickable AJAX-enabled link using the 'use-ajax' class. |
ajax_example_simplest |
modules/ |
Basic AJAX callback example. |
ajax_example_simplest_callback |
modules/ |
Callback for ajax_example_simplest. |
ajax_example_submit_driven_ajax |
modules/ |
A very basic form which with an AJAX-enabled submit. |
ajax_example_submit_driven_callback |
modules/ |
Callback for submit_driven example. |
ajax_link_response |
modules/ |
Callback for link example. |
_ajax_example_get_first_dropdown_options |
modules/ |
Helper function to populate the first dropdown. |
_ajax_example_get_second_dropdown_options |
modules/ |
Helper function to populate the second dropdown. |
Classes
Name | Location | Description |
---|---|---|
AjaxExampleTestCase |
modules/ |
Functional tests for AJAX Example module. |