Index: README.txt
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/jstools/ajaxsubmit/README.txt,v
retrieving revision 1.5
diff -u -r1.5 README.txt
--- README.txt	4 Feb 2007 19:08:27 -0000	1.5
+++ README.txt	22 Feb 2008 02:20:10 -0000
@@ -7,6 +7,34 @@
 
 $form['#ajaxsubmit'] = TRUE;
 
+The module provides an admin screen which will enable this as an option for any forms of which form_store is aware. You can also enable it directly via form_alter() for existing forms, or build the #ajaxsubmit attribute into original forms provided by your own module(s).
+
+IMPLEMENTING VIA HOOK_FORM_ALTER:
+For instance, you might have custom menu callback which includes the ability to submit a node/add/blog form via AJAX, but you want to keep the regular node/add/blog form as-is. 
+
+In that case, you will need to selectively add the #autocomplete attribute to the $form, once for when the form is built for display, and once for when the form is processed. It would probably look like the following:
+
+function my_custom_callback() {
+  global $user;
+  $node = array('uid' => $user->uid, 'name' => $user->name, 'type' => 'wisdometer');
+
+  $output = "<p>This is a custom function for displaying an AJAX blog form.</p>"
+  $output = drupal_get_form('blog_node_form', $node, 'AJAX');
+  
+  return $output;
+}
+
+function my_form_alter($form_id, &$form) {
+  if ($form_id == 'blog_node_form' && $form['#parameters'][2] == 'AJAX') {
+    // $form['#parameters'] has the extra arguments from drupal_get_form, so we know this is intended for ajaxsubmit
+    $form['#ajaxsubmit'] = TRUE;
+  }
+  elseif ($form_id == 'blog_node_form' && $form['#post']['#ajaxsubmit'] == TRUE) {
+    // pick up for processing
+    $form['#ajaxsubmit'] = TRUE;
+  }
+}
+
 
 Requirements
 ------------------------------------------------------------------------------
