I'm not too sure, but I think it's because you need to observe the event
where the event is fired. $('Select1') fires the event, so you need to
observe $('Select1') to catch the event, otherwise you're waiting for
$('Select2') to fire it, and it never does.

2008/9/28 buda <[EMAIL PROTECTED]>

>
> but when I change the second line to
> $('form1').observe('Select1:changed', function()
> { alert('catched') })
>
> it catches the event and message 'catched' is appeared
>
>
> On 29 сент, 01:57, buda <[EMAIL PROTECTED]> wrote:
> > I want to fire an Event when one select is changed, an after that I
> > want all selec-elements which is observing on this event catch that
> > event
> >
> > $('Select1').observe('change', function()
> > { this.fire('Select1:changed') })
> > $('Select2').observe('Select1:changed', function()
> > { alert('catched') })
> >
> > when I changed Select1 - Select2 doesnt react. Why?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to