Custom events are built on top of the dataavailable event, so they
behave just let any other standard bubbling event.   That means if you
want to be able to catch the event you need to be observing on an
element that it would bubble to.
In your code
  $('Select2').observe('Select1:changed', function()
{ alert('changed'); });
it listens at the select2 event for your custom event named
"Select1:changed" - (note the name of the event is strictly arbitrary
and doesnt actually tie it in any way to Select1)  Because of this if
you fire the event on Select1 it will never bubble to Select2.  As
Hector pointed out if you fire the Event on select2 then your observer
will catch it - { $('Select2').fire('Select1:changed') }


Tom

--~--~---------~--~----~------------~-------~--~----~
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