You are here

Example: AJAX in Examples for Developers 7

Same name and namespace in other branches
  1. 8 ajax_example/ajax_example.module \ajax_example
  2. 3.x modules/ajax_example/ajax_example.module \ajax_example

These examples show basic AJAX concepts.

General documentation is available at AJAX Framework documentation and at the AJAX Forms handbook page.

The several examples here demonstrate basic AJAX usage.

Parent topics

File

ajax_example/ajax_example.module, line 8
AJAX Examples module file with basic examples.

Functions

Namesort descending Location Description
ajax_example_autocheckboxes ajax_example/ajax_example.module Form manipulation through AJAX.
ajax_example_autocheckboxes_callback ajax_example/ajax_example.module Callback for autocheckboxes.
ajax_example_autotextfields ajax_example/ajax_example.module Show/hide textfields based on AJAX-enabled checkbox clicks.
ajax_example_autotextfields_callback ajax_example/ajax_example.module Callback for autotextfields.
ajax_example_dependent_dropdown ajax_example/ajax_example.module AJAX-based dropdown example form.
ajax_example_dependent_dropdown_callback ajax_example/ajax_example.module Selects just the second dropdown to be returned for re-rendering.
ajax_example_intro ajax_example/ajax_example.module A basic introduction page for the ajax_example module.
ajax_example_menu ajax_example/ajax_example.module Implements hook_menu().
ajax_example_render_link ajax_example/ajax_example_misc.inc Demonstrates a clickable AJAX-enabled link using the 'use-ajax' class.
ajax_example_simplest ajax_example/ajax_example.module Basic AJAX callback example.
ajax_example_simplest_callback ajax_example/ajax_example.module Callback for ajax_example_simplest.
ajax_example_submit_driven_ajax ajax_example/ajax_example.module A very basic form which with an AJAX-enabled submit.
ajax_example_submit_driven_callback ajax_example/ajax_example.module Callback for submit_driven example.
ajax_link_response ajax_example/ajax_example_misc.inc Callback for link example.
_ajax_example_get_first_dropdown_options ajax_example/ajax_example.module Helper function to populate the first dropdown.
_ajax_example_get_second_dropdown_options ajax_example/ajax_example.module Helper function to populate the second dropdown.

Classes

Namesort descending Location Description
AjaxExampleTestCase ajax_example/ajax_example.test Functional tests for AJAX Example module.