function ctools_ajax_command_html in Chaos Tool Suite (ctools) 6
Set the HTML of a given selector to the given data.
Parameters
$selector: The CSS selector. This can be any selector jquery uses in $().
$html: The data to use with the jquery replace() function.
2 calls to ctools_ajax_command_html()
- ctools_ajax_sample_animal in ctools_ajax_sample/
ctools_ajax_sample.module - A modal login callback.
- ctools_ajax_sample_hello in ctools_ajax_sample/
ctools_ajax_sample.module - Returns a "take it all over" hello world style request.
File
- includes/
ajax.inc, line 171 - Utilize the CTools AJAX responder.
Code
function ctools_ajax_command_html($selector, $html) {
return array(
'command' => 'html',
'selector' => $selector,
'data' => $html,
);
}