I've written some modal box functionality that loads HTML into the DOM as snippets. This includes AHAH-enabled forms.
I've got as far as pulling out the AHAH settings, and can re-initialize:
jQuery.extend( Drupal.settings, response.setting );
I can also re-initialize:
Drupal.attachBehaviors( container );
I've even ensured that ahah.js is always loaded into the main page.
All this doesn't seem to be enough to get it working. Does anyone know what else I need to do?