1 ajax_example_advanced.inc | ajax_example_advanced_commands_append_callback($form, $form_state) |
Callback for 'append'.
See also
File
- modules/
examples/ ajax_example/ ajax_example_advanced.inc, line 258 - AJAX Commands examples.
Code
function ajax_example_advanced_commands_append_callback($form, $form_state) {
$selector = '#append_div';
$commands = array();
$commands[] = ajax_command_append($selector, "Stuff...");
$commands[] = ajax_command_replace("#append_status", "<div id='append_status'>Updated append_command_example " . date('r') . "</div>");
return array('#type' => 'ajax', '#commands' => $commands);
}