1. 1 core/includes/ajax.inc
  2. 1 core/modules/views/includes/ajax.inc

Functions for use with Backdrop's Ajax framework.

File

core/includes/ajax.inc

Functions

Namesort ascending Description
ajax_set_verification_header Sets a response header for ajax.js to trust the response body.
ajax_render Renders a commands array into JSON.
ajax_process_form Form element processing handler for the #ajax form property.
ajax_pre_render_element Adds Ajax information about an element to communicate with JavaScript.
ajax_prepare_response Converts the return value of a page callback into an Ajax commands array.
ajax_get_form Gets a form submitted via #ajax during an Ajax callback.
ajax_form_callback Page callback: Handles Ajax requests for the #ajax Form API property.
ajax_footer Performs end-of-Ajax-request tasks.
ajax_deliver_dialog Delivers the content of a page as a dialog.
ajax_deliver Packages and sends the result of a page callback as an Ajax response.
ajax_command_update_build_id Creates a Backdrop Ajax 'update_build_id' command.
ajax_command_set_dialog_title Provides an AJAX command that sets a dialog title.
ajax_command_set_dialog_option Provides an AJAX command that sets jQuery UI dialog properties.
ajax_command_settings Creates a Backdrop Ajax 'settings' command.
ajax_command_restripe Creates a Backdrop Ajax 'restripe' command.
ajax_command_replace Creates a Backdrop Ajax 'insert/replaceWith' command.
ajax_command_remove Creates a Backdrop Ajax 'remove' command.
ajax_command_redirect Provides an AJAX command to set the window.location, loading that URL.
ajax_command_prepend Creates a Backdrop Ajax 'insert/prepend' command.
ajax_command_open_modal_dialog Provides an AJAX command to open content in a modal dialog.
ajax_command_open_dialog Provides an AJAX command to open content in a dialog.
ajax_command_invoke Creates a Backdrop Ajax 'invoke' command.
ajax_command_insert Creates a Backdrop Ajax 'insert' command using the method in #ajax['method'].
ajax_command_html Creates a Backdrop Ajax 'insert/html' command.
ajax_command_data Creates a Backdrop Ajax 'data' command.
ajax_command_css Creates a Backdrop Ajax 'css' command.
ajax_command_close_modal_dialog Provides a shortcut command for closing a modal dialog.
ajax_command_close_dialog Provides an AJAX command to close an open dialog.
ajax_command_changed Creates a Backdrop Ajax 'changed' command.
ajax_command_before Creates a Backdrop Ajax 'insert/before' command.
ajax_command_append Creates a Backdrop Ajax 'insert/append' command.
ajax_command_alert Creates a Backdrop Ajax 'alert' command.
ajax_command_after Creates a Backdrop Ajax 'insert/after' command.
ajax_command_add_css Creates a Backdrop Ajax 'addCss' command.
ajax_base_page_theme Theme callback: Returns the correct theme for an Ajax request.