NameLocationDescription
ajax_command_insertincludes/ajax.incCreates a Drupal Ajax 'insert' command using the method in #ajax['method'].
ajax_command_invokeincludes/ajax.incCreates a Drupal Ajax 'invoke' command.
ajax_command_prependincludes/ajax.incCreates a Drupal Ajax 'insert/prepend' command.
ajax_command_removeincludes/ajax.incCreates a Drupal Ajax 'remove' command.
ajax_command_replaceincludes/ajax.incCreates a Drupal Ajax 'insert/replaceWith' command.
ajax_command_restripeincludes/ajax.incCreates a Drupal Ajax 'restripe' command.
ajax_command_settingsincludes/ajax.incCreates a Drupal Ajax 'settings' command.
ajax_deliverincludes/ajax.incPackage and send the result of a page callback to the browser as an Ajax response.
ajax_example_add_moreexamples/ajax_example/ajax_example_graceful_degradation.incThis example shows a button to "add more" - add another textfield, and the corresponding "remove" button.
ajax_example_add_more_add_oneexamples/ajax_example/ajax_example_graceful_degradation.incSubmit handler for the "add-one-more" button.
ajax_example_add_more_callbackexamples/ajax_example/ajax_example_graceful_degradation.incCallback for both ajax-enabled buttons.
ajax_example_add_more_remove_oneexamples/ajax_example/ajax_example_graceful_degradation.incSubmit handler for the "remove one" button.
ajax_example_add_more_submitexamples/ajax_example/ajax_example_graceful_degradation.incFinal submit handler.
ajax_example_advanced_commandsexamples/ajax_example/ajax_example_advanced.incForm to display the AJAX Commands.
ajax_example_advanced_commands_after_callbackexamples/ajax_example/ajax_example_advanced.inc'after' callback.
ajax_example_advanced_commands_alert_callbackexamples/ajax_example/ajax_example_advanced.inc'alert' callback.
ajax_example_advanced_commands_append_callbackexamples/ajax_example/ajax_example_advanced.inc'append' callback.
ajax_example_advanced_commands_before_callbackexamples/ajax_example/ajax_example_advanced.inc'before' callback.
ajax_example_advanced_commands_changed_callbackexamples/ajax_example/ajax_example_advanced.inc'changed' callback.
ajax_example_advanced_commands_css_callbackexamples/ajax_example/ajax_example_advanced.inc'css' callback.
ajax_example_advanced_commands_data_callbackexamples/ajax_example/ajax_example_advanced.inc'data' callback.
ajax_example_advanced_commands_html_callbackexamples/ajax_example/ajax_example_advanced.inc'html' callback.
ajax_example_advanced_commands_prepend_callbackexamples/ajax_example/ajax_example_advanced.inc'prepend' callback.
ajax_example_advanced_commands_remove_callbackexamples/ajax_example/ajax_example_advanced.inc'remove' callback.
ajax_example_advanced_commands_restripe_callbackexamples/ajax_example/ajax_example_advanced.inc'restripe' callback.
ajax_example_advanced_commands_restripe_num_rowsexamples/ajax_example/ajax_example_advanced.inc'restripe' rows callback.
ajax_example_autocheckboxesexamples/ajax_example/ajax_example.moduleAJAX-enabled select element causes replacement of a set of checkboxes based on the selection.
ajax_example_autocheckboxes_callbackexamples/ajax_example/ajax_example.moduleCallback element needs only select the portion of the form to be updated. Since #ajax['callback'] return can be HTML or a renderable array (or an array of commands), we can just return a piece of the form. See @link ajax_example_advanced.inc…
ajax_example_autotextfieldsexamples/ajax_example/ajax_example.moduleShow/hide textfields based on AJAX-enabled checkbox clicks.
ajax_example_autotextfields_callbackexamples/ajax_example/ajax_example.moduleSelects the piece of the form we want to use as replacement text and returns it as a form (renderable array).
ajax_example_dependent_dropdownexamples/ajax_example/ajax_example.moduleA form with a dropdown whose options are dependent on a choice made in a previous dropdown.
ajax_example_dependent_dropdown_callbackexamples/ajax_example/ajax_example.moduleSelects just the second dropdown to be returned for re-rendering
ajax_example_dependent_dropdown_degradesexamples/ajax_example/ajax_example_graceful_degradation.incA form with a dropdown whose options are dependent on a choice made in a previous dropdown.
ajax_example_dependent_dropdown_degrades_first_callbackexamples/ajax_example/ajax_example_graceful_degradation.incSelects just the second dropdown to be returned for re-rendering.
ajax_example_dependent_dropdown_degrades_submitexamples/ajax_example/ajax_example_graceful_degradation.incSubmit function for ajax_example_dependent_dropdown_degrades().
ajax_example_dynamic_sectionsexamples/ajax_example/ajax_example_graceful_degradation.incExample of a form with portions dynamically enabled or disabled, but with graceful degradation in the case of no javascript.
ajax_example_dynamic_sections_select_callbackexamples/ajax_example/ajax_example_graceful_degradation.incCallback for the select element.
ajax_example_dynamic_sections_submitexamples/ajax_example/ajax_example_graceful_degradation.incSubmit function for ajax_example_dynamic_sections().
ajax_example_dynamic_sections_validateexamples/ajax_example/ajax_example_graceful_degradation.incValidation function for ajax_example_dynamic_sections().
ajax_example_introexamples/ajax_example/ajax_example.module
ajax_example_menuexamples/ajax_example/ajax_example.moduleImplements hook_menu().
ajax_example_render_linkexamples/ajax_example/ajax_example_misc.incDemonstrates a clickable AJAX-enabled link using the 'use-ajax' class.
ajax_example_render_link_raexamples/ajax_example/ajax_example_misc.incDemonstrates a clickable AJAX-enabled link using a renderable array with the #ajax property.
ajax_example_simplestexamples/ajax_example/ajax_example.moduleSimple form whose ajax-enabled 'changethis' member causes a text change in the description of the 'replace_textfield' member. See Form API Tutorial
ajax_example_simplest_callbackexamples/ajax_example/ajax_example.moduleCallback for ajax_example_simplest.
ajax_example_submit_driven_ajaxexamples/ajax_example/ajax_example.moduleA very basic form which with an AJAX-enabled submit.
ajax_example_submit_driven_callbackexamples/ajax_example/ajax_example.moduleSelect the 'box' element, change the markup in it, and return it as a renderable array.
ajax_example_wizardexamples/ajax_example/ajax_example_graceful_degradation.incThis example is a classic wizard, where a different and sequential form is presented on each step of the form.
ajax_example_wizard_callbackexamples/ajax_example/ajax_example_graceful_degradation.inc
ajax_example_wizard_submitexamples/ajax_example/ajax_example_graceful_degradation.incSubmit function for ajax_example_wizard.