['element1','element2','element3'].each(function(e){ Event.observe(e, 'click', mycallback.bindAsEventListener()); });

hth

On 7/18/06, Owen Franssen <[EMAIL PROTECTED]> wrote:
Is there any way to pass Prototype's Event.observe an array of elements, e.g. an array returned by something like
getElementsByClassName?
Yahoo!'s YUI allows adding of event handlers to multiple elements but so far I have had no success with Prototype

Thanks,
Owen

Thomas Fuchs wrote:
> The events are just your normal DOM events minus the "on".
>
> -Thomas
>
>
> Am 27.06.2006 um 22:37 schrieb Keith Davis:
>
>> Where is a list of the events and why don't they match up with the
>> actual event name?
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Rails-spinoffs mailing list
> [email protected]
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs



--
Mit freundlichen Grüßen

Siegfried Puchbauer
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to