Win a copy of Java Challengers this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

Question about event tracking

Ranch Hand
Posts: 195
Netbeans IDE PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Best ranchers!

I have a question about event handling in javascript. I need to figure out a crossbrowser friendly way to keep track
on the mouse when the user leaves a certain div element.

I know about the "mouseleave" attribute in the addEventListener method, but it is not ie compatible and thats the
eye of the problem. I have tested around with the event.cancelBubble  = true (ie) and event.stopPropagation (w3c)

How can I prevent - in ie - a div from closing after the mouse leaves a li-element in a list and when the mouse leaves
the parent element in this case the former mentioned div tag?

Thanks for visiting!

Posts: 67528
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Devil's advocate: what is the business case for supporting IE, a browser that has been sun-setted for many years? Sure, there are edge cases where IE support is still needed, but I think that a lot of people feel that they need to support IE when they actually do not (or even should not).

If you truly have one of those rare use cases, older versions of jQuery (that still support IE) can likely be of help.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic