it isn't enough, you need to seteventlistener and sinkevents.
PS : DOM.sinkEvents so disappear in 1.5 ! On 15 déc, 17:41, "Kevin Tarn" <[email protected]> wrote: > You can use sinkEvents instead: > > Element el = DOM.getElementById(id); > if (el != null) > { > DOM.sinkEvents(el, Event.ONCLICK|Event.ONMOUSEOVER); > } > > Best > Kevin > > On Mon, Dec 15, 2008 at 8:21 PM, [email protected] <[email protected]>wrote: > > > > > Hello, > > > I can't find in the new DOM model of 1.5 a method to apply a listener > > on an element (like in DOM model of the 1.4 : DOM.seteventlistener) > > > So how can i set an eventlistener on an element in 1.5 ? > > > Thanks > > > Stephane --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
