views:

65

answers:

1

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?

+2  A: 

The steps in my initial question are actually fine. This is all you need to do to get AHAH kick-started into a custom bit of JS. As I said in my comment the AHAH JavaScript has no error callback, so put some breakpoints in ahah.js if things don't seem to be working as expected.

Tim Whitlock
+1 for follow up with own findings
Henrik Opel