[jQuery] Re: Event.target is Parent Child in IE but in Firefox it is child Element

2008-10-29 Thread ricardobeat
In your code you could just attach the event handler to the menu items themselves, $('.subMenu').hover(...). Or take a look at the LiveQuery plugin (http://brandonaaron.net/docs/ livequery/), it handles event delegation for you. cheers, - ricardo On Oct 29, 2:56 am, csplrj <[EMAIL PROTECTED]> w

[jQuery] Re: Event.target is Parent Child in IE but in Firefox it is child Element

2008-10-28 Thread csplrj
Yes I am facing this on real project But should not JQuery handle this issue as JQuery is meant for crossbrowser? CSJakharia

[jQuery] Re: Event.target is Parent Child in IE but in Firefox it is child Element

2008-10-28 Thread ricardobeat
*property, that is. BTW, are you facing this issue on real project? Using jQuery event handlers the 'this' keyword usually suffices. On Oct 28, 4:55 pm, ricardobeat <[EMAIL PROTECTED]> wrote: > Ah, now I see it. Actually in IE it doesn't alert at all when hovering > the menu only. > > I think IE

[jQuery] Re: Event.target is Parent Child in IE but in Firefox it is child Element

2008-10-28 Thread ricardobeat
Ah, now I see it. Actually in IE it doesn't alert at all when hovering the menu only. I think IE doesn't support the "target" attribute. Try this: subMenu = (event.target || event.srcElement).id; On Oct 28, 3:39 am, csplrj <[EMAIL PROTECTED]> wrote: > I am using Firefox 3.0.3 and IE 6.0 > > If

[jQuery] Re: Event.target is Parent Child in IE but in Firefox it is child Element

2008-10-27 Thread csplrj
I am using Firefox 3.0.3 and IE 6.0 If we scroll mouse over Menu1 then in Firefox the message comes "menu1 nav" but in IE it comes "nav nav" Thanks in advance CSJakharia

[jQuery] Re: Event.target is Parent Child in IE but in Firefox it is child Element

2008-10-26 Thread ricardobeat
On your sample site both IE and FF alert "nav nav". - ricardo On Oct 26, 12:14 pm, csplrj <[EMAIL PROTECTED]> wrote: > I have used Hover Event When I try to get event.target.id, I get the > inner child element in Firefox but in IE I get the parent element in > IE. > The example is athttp://trade