I would like to attach a zip file containing two example modules to the Doing AHAH Correctly in Drupal 6 page (http://drupal.org/node/331941). It would be nice if I got a go from some documentation guru and a quick review of my code to make sure it's okay.
AHAH is a confusing topic and it took me the better part of a week to grasp the concepts behind it. The handbook page wasn't very helpful. If you browse through the comments, a lot of questions remain unanswered and some suggestions are downright wrong.
The package contains two modules that demo basic AHAH principles:
A. Button demo module
Demonstrates an implementation of AHAH based on a submit button.
B. Select demo module
Demonstrates an implementation of AHAH based on a select list.
Both modules contain comments which explain what happens through the process.
Package attached to this issue.