1. #1
    Touch Premium Member
    Join Date
    Mar 2007
    Posts
    58
    Vote Rating
    0
    Ramsay is on a distinguished road

      0  

    Default 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:

    Code:
    <div id="outer">
        <div id="inner">text</div>
    </div>
    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?

  2. #2
    Sencha User
    Join Date
    Apr 2012
    Location
    Austin, Texas
    Posts
    2
    Vote Rating
    0
    brian.moeskau is an unknown quantity at this point

      0  

    Default


    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'.

  3. #3
    Touch Premium Member
    Join Date
    Mar 2007
    Posts
    58
    Vote Rating
    0
    Ramsay is on a distinguished road

      0  

    Default


    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)

  4. #4
    Ext User
    Join Date
    Mar 2007
    Posts
    31
    Vote Rating
    0
    oxi is on a distinguished road

      0  

    Default


    Could you share some example code with us Ramsay?
    Thanks in advance...

Similar Threads

  1. Where are animate classes: "Actor" , "Animato
    By Young in forum Ext 2.x: Help & Discussion
    Replies: 13
    Last Post: 25 Jul 2007, 4:00 AM
  2. "FireFox2 kills cursor" and text-select in toolbar
    By brian in forum Ext 1.x: Bugs
    Replies: 8
    Last Post: 7 Jun 2007, 12:12 AM
  3. BorderLayout on a div inside a "regular" page
    By digeomel in forum Ext 1.x: Help & Discussion
    Replies: 6
    Last Post: 28 Feb 2007, 6:09 AM
  4. Show "Loading" message before load a Grid
    By cadudecastroalves in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 11 Dec 2006, 6:43 AM
  5. Help with "auto"-height rows displaying images
    By next2you in forum Ext 1.x: Help & Discussion
    Replies: 5
    Last Post: 6 Dec 2006, 12:20 PM

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar