Home > Archive > ASP .NET > December 2007 > Document Dom / Table Events Problems
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Document Dom / Table Events Problems
|
|
| Just Me 2007-12-18, 7:20 pm |
| Hi Guys
Again, I know this isnt an IE group, but this is where the experts are and I
am working on an asp,net project. In this scenario im working ont the
client javascript handling tables mouse events.
Essentially the problem description is very simple.
I have a table with rows and cells. I want the mouseLeave and mouseEnter
event to fire when a row is entered or left.
What is happening is whenever I leave or enter a TD element the event also
fires even tho im not leavin the row. The events are defined when entering
or exiting a td in the same row.
<tr mouseleave="afunctionleave()" mouseenter="afunctionenter() > < td><td>
.. . . . .
How can I trigger the event or filter the event to I only process code wen
the row has changed.
| |
| Coskun SUNALI [MVP] 2007-12-25, 7:16 pm |
| Hi,
Would you like to try "onmouseover" and "onmouseout" events?
<tr onmouseout="afunctionleave()" onmouseover="afunctionenter() > < td><td>
--
All the best,
Coskun SUNALI
MVP ASP/ASP.NET
http://sunali.com
"Just Me" <news.microsoft.com> wrote in message
news:%23rLsUibQIHA.2000@TK2MSFTNGP05.phx.gbl...
> Hi Guys
>
> Again, I know this isnt an IE group, but this is where the experts are and
> I am working on an asp,net project. In this scenario im working ont the
> client javascript handling tables mouse events.
>
>
> Essentially the problem description is very simple.
>
> I have a table with rows and cells. I want the mouseLeave and mouseEnter
> event to fire when a row is entered or left.
>
> What is happening is whenever I leave or enter a TD element the event
> also fires even tho im not leavin the row. The events are defined when
> entering or exiting a td in the same row.
>
> <tr mouseleave="afunctionleave()" mouseenter="afunctionenter() > < td><td>
> . . . . .
>
>
> How can I trigger the event or filter the event to I only process code wen
> the row has changed.
>
| |
|
|
|
|
|