I'm currently running gwt from a static page. On the static page is a
div like <div onmouseout="somefunction()">data</div>
Where I use jsni to map somefunction() to a static function in a gwt
class. This works fine, and when I mouse over the div it calls
somefunction(). The problem is it calls somefunction() whenever one
of the child elements of the div gets a mouseout event as well.
Now I need to get the actual target element of the event. I'm not
sure how to do this.
I tried getting the event with a jsni function:
private static native Event getCalledEvent()/*-{
return $wnd.Event;
}-*/;
Which does seem to return an Event object, but if I do:
- DOM.eventGetTarget(event);
The Element object returned is null.
I'm not sure how to proceed at this point. I need to get the event
target, but I'm not sure how.
Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---