[development] one AHAH action, two modified elements

Randy Fay randy at randyfay.com
Wed Jul 7 16:42:26 UTC 2010


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 at 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 at randyfay.com
+1  970.462.7450
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20100707/9fdae9ff/attachment.html 


More information about the development mailing list