Yes thats because its the parent ... If you want to not bubble up the dom you need to look at
Event.stop(event); HTH Alex ----- Original Message ----- From: "Lee Jenkins" <[email protected]> To: <[email protected]> Sent: Friday, March 06, 2009 4:06 PM Subject: [Proto-Scripty] Re: Simulating "focus" > > Lee Jenkins wrote: >> >> Hi all, >> >> Assume that I have 2 div's which each contain appropriate content to >> resemble >> desktop forms with caption, min/max/close buttons, etc. and that they are >> overlapping on the same z-index. >> >> If I click on the form that appears behind the first, it should "come to >> the >> front". My idea was to place them all on the same z-index and then use >> event >> listeners to switch them back from say z-index 1 to 2 and then back >> again. >> > > I quick test confirms that the form (div) will receive a click event even > if a > child element was clicked. > > Thanks, > > -- > Warm Regards, > > Lee > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] 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 -~----------~----~----~----~------~----~------~--~---
