In Drupal 7 you can do this just fine by returning multiple AJAX commands from the callback.

I don't think there's a way to do it using just the AHAH framework in D6, because the ajax.js stuff is fixated on the wrapper ID it's been given.

-Randy

On Wed, Jul 7, 2010 at 10:25 AM, Athanasios Velios <a.velios@gmail.com> wrote:
Hi,

I was wondering whether any of you has managed to do this:

I have an ahah-enabled button in a form and two other independent elements. I wish to be able to change both of these independent elements by pressing the button, i.e. in a single ahah action.

Passing an array of elements to drupal_render partly does the trick but the binding only takes place for the wrapper of the current element, with the other one not being changed.

Any ideas?

Thanks

Thanasis



--
Randy Fay
Drupal Module and Site Development
randy@randyfay.com
+1  970.462.7450