Loading ...
Sorry, an error occurred while loading the content.

Re: Calendar onmouseout

Expand Messages
  • Sebastian Feher
    ... bubbling all ... container. If ... make sure ... your logic ... javascript@yahoogroups.com] ... ... event ... (the ... Thanks for your response
    Message 1 of 4 , Jun 27, 2006
    • 0 Attachment
      --- In ydn-javascript@yahoogroups.com, "Steven Peterson"
      <peterson@...> wrote:
      >
      > Unless you use stopEvent in your handler, the event will fire
      bubbling all
      > the way back up from the lowest level element to the highest
      container. If
      > you only want to use onMouseOut on the container, you'll need to
      make sure
      > that you check the event target in your handler and only execute
      your logic
      > for the correct element.
      >
      >
      >
      > Steven Peterson
      >
      > Web Developer, Platform Engineering
      >
      > Yahoo!
      >
      > From: ydn-javascript@yahoogroups.com [mailto:ydn-
      javascript@yahoogroups.com]
      > On Behalf Of Sebastian Feher
      > Sent: Friday, June 23, 2006 12:46 PM
      > To: ydn-javascript@yahoogroups.com
      > Subject: [ydn-javascript] Re: Calendar onmouseout
      >
      >
      >
      > --- In ydn-javascript@yahoogroups.com
      > <mailto:ydn-javascript%40yahoogroups.com> , "Sebastian Feher"
      <sebif@>
      > wrote:
      > >
      > > Hi,
      > >
      > > I am trying to set up the Calendar to send me an onmouseout
      event
      > when
      > > leaving the control but instead it notifies me while moving the
      > cursor
      > > inside, e.g. leaving the cell:
      > >
      > > YAHOO.util.Event.addListener('c1Container', 'mouseout',
      > testMouseOut );
      > >
      > > <div id="c1Container" style="position:absolute;"></div>
      > >
      > > How do I get the right notification?
      > >
      > > Regards,
      > > Sebastian
      > >
      >
      > Just to clear it up, I actually expect the container/DOM element
      (the
      > DIV c1Container) to send me the notification, but the Calendar
      > control seems to jump in.
      >

      Thanks for your response Steven. The Calendar has both a
      doCellMouseOver and a doCellMouseOut and I was able to stopEvent
      there.
    Your message has been successfully submitted and would be delivered to recipients shortly.