[Prototype-core] Re: IE onmouseleave

2008-06-12 Thread Andrew Dupont
[1] http://msdn.microsoft.com/en-us/library/ms536956(VS.85).aspx [2] http://msdn.microsoft.com/en-us/library/ms536910(VS.85).aspx (Just pretend I included these in the original message.) On Jun 12, 8:20 pm, Andrew Dupont <[EMAIL PROTECTED]> wrote: > On Jun 12, 5:46 am, Nick Stakenburg <[EMAIL PR

[Prototype-core] Re: IE onmouseleave

2008-06-12 Thread Andrew Dupont
On Jun 12, 5:46 am, Nick Stakenburg <[EMAIL PROTECTED]> wrote: > I've been saying this for some time but custom events seem to be used > as an excuse not to implement this properly, like other frameworks > have done. Of course it can be done with custom events but it's > clearly not the best appro

[Prototype-core] Re: IE onmouseleave

2008-06-12 Thread Diego Perini
Nick, my suggestion was to use standard native events in user code, not custom events in the core: mouseover (bubbles and is cancelable). The user should then take care of cancelling the event himself if he does not use the bubbling phase or if is disturbing to have ancestors be notified. -- Di

[Prototype-core] Re: IE onmouseleave

2008-06-12 Thread Nick Stakenburg
Diego, on IE custom events can't be cancelled. fireEvent will always fire an event that bubbles. http://msdn.microsoft.com/en-us/library/ms536423(VS.85).aspx That's why I'm for making Element#observe handle mouseenter/leave in the core. Firing and then filtering custom events goes against the po

[Prototype-core] Re: IE onmouseleave

2008-06-10 Thread Diego Perini
I am probably missing something, but... Why not use mouseover / mouseout on all browser and then use "event.stopPropagation()" method or "event.cancelBubble=true" for IE ? Are there browsers where the bubbling phase of these events can't be cancelled ? -- Diego Perini On 10 Giu, 21:58, Nick

[Prototype-core] Re: IE onmouseleave

2008-06-10 Thread Nick Stakenburg
Andrew has a script that shows how to do it with custom events: http://github.com/savetheclocktower/javascript-stuff/tree/master/custom-events/mouse_enter_leave.js It's not as convenient as real mouseenter/mouseleave behaviour, because these event will bubble. Child elements will fire mouse:enter

[Prototype-core] Re: IE onmouseleave

2008-06-10 Thread Ken Snyder
Alex K wrote: > Hi Guys, I've suffered IE weird bug: > > this browser sends onmouseout events even if the mouse is actually > within the scope of the element, this happens when the mouse is over > the child element. There is a way to solve this, IE send the proper > event with name 'mouseleave',