16 Mar 2007 4:49 AM #1
Howto: "Is Mouse Inside"?
I'm trying to work out how to do a slightly more complex mouseover. If I have this:
<div id="outer"> <div id="inner">text</div> </div>
16 Mar 2007 5:57 AM #2
Events will start at the element you're directly interacting with and bubble up from there. The easiest approach is probably to check the target of the event passed into your handler and filter on the id, disregarding any elements that you don't care about. If you literally wanted to prevent the event from propagating up from inner, then you'd probably need to call e.stopEvent() if the target id is 'inner'.
16 Mar 2007 3:54 PM #3
Yep, I've done something similar before. I was just hoping that there was some magic method which Ext could provide to help me out. Thanks for the advice though!
17 Mar 2007 2:05 AM #4
Could you share some example code with us Ramsay?
Thanks in advance...
By Young in forum Ext 2.x: Help & DiscussionReplies: 13Last Post: 25 Jul 2007, 4:00 AM
By brian in forum Ext 1.x: BugsReplies: 8Last Post: 7 Jun 2007, 12:12 AM
By digeomel in forum Ext 1.x: Help & DiscussionReplies: 6Last Post: 28 Feb 2007, 6:09 AM
By cadudecastroalves in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 11 Dec 2006, 6:43 AM
By next2you in forum Ext 1.x: Help & DiscussionReplies: 5Last Post: 6 Dec 2006, 12:20 PM