-
16 Mar 2007 4:49 AM #1
Howto: "Is Mouse Inside"?
Howto: "Is Mouse Inside"?
Hello all,
I'm trying to work out how to do a slightly more complex mouseover. If I have this:
And I attach mouseover and mouseout listeners to "outer", if the I mouseover "inner" then I trigger the mouseout on "outer"... Is there a clever way of avoiding this with Ext?Code:<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!
8)
-
17 Mar 2007 2:05 AM #4
Could you share some example code with us Ramsay?
Thanks in advance...
Similar Threads
-
Where are animate classes: "Actor" , "Animato
By Young in forum Ext 2.x: Help & DiscussionReplies: 13Last Post: 25 Jul 2007, 4:00 AM -
"FireFox2 kills cursor" and text-select in toolbar
By brian in forum Ext 1.x: BugsReplies: 8Last Post: 7 Jun 2007, 12:12 AM -
BorderLayout on a div inside a "regular" page
By digeomel in forum Ext 1.x: Help & DiscussionReplies: 6Last Post: 28 Feb 2007, 6:09 AM -
Show "Loading" message before load a Grid
By cadudecastroalves in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 11 Dec 2006, 6:43 AM -
Help with "auto"-height rows displaying images
By next2you in forum Ext 1.x: Help & DiscussionReplies: 5Last Post: 6 Dec 2006, 12:20 PM


Reply With Quote