? LICENSE.txt ? example.patch ? examples-module.patch Index: ajax_example/ajax_example_misc.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/examples/ajax_example/ajax_example_misc.inc,v retrieving revision 1.2 diff -u -p -r1.2 ajax_example_misc.inc --- ajax_example/ajax_example_misc.inc 23 Mar 2010 02:26:24 -0000 1.2 +++ ajax_example/ajax_example_misc.inc 6 Jul 2010 04:13:55 -0000 @@ -46,7 +46,7 @@ URL whether JS was enabled or not, letti */ function ajax_link_response($type = 'ajax') { if ($type == 'ajax') { - $output = t("This is some content delivered via AJAX"); + $output = drupal_render(drupal_get_form('ajax_link_example_form')); $commands = array(); $commands[] = ajax_command_append('#myDiv', $output); $page = array('#type' => 'ajax', '#commands' => $commands); @@ -57,3 +57,14 @@ function ajax_link_response($type = 'aja return $output; } } + +function ajax_link_example_form(&$form_state) { + drupal_add_css('misc/print.css'); + $form['test'] = array( + '#type' => 'textarea', + '#title' => t('Test text area'), + '#description' => t('If javascript loading is working via AJAX, this textarea will be resizable.'), + ); + + return $form; +}