Thanks for your answers, I'll be testing this on IE and report my conclusions here.
On 3 août, 00:01, lineman78 <[email protected]> wrote: > event.preventDefault works in both firefox and IE if you use the > modern GWT event handling(handler registration method) instead of the > DOM event handling (pre 1.6). > > On Aug 2, 3:04 pm, Falcon <[email protected]> wrote: > > > > > (You can also use event.returnValue = false, at least for IE.) > > > On Aug 2, 3:50 pm, Falcon <[email protected]> wrote: > > > > In browsers that don't support the W3C event model, you'll need to > > > return false instead. > > > > (Also, to be clear, event.preventDefault() prevents the default > > > browser action from happening, e.g. following a link that was clicked. > > > event.stopPropagation() is what stops the event from bubbling through > > > the DOM tree.) > > > > On Aug 2, 9:43 am, magat <[email protected]> wrote: > > > > > Hi, > > > > > I'm currently trying to set up a contextual menu on my gwt app, that > > > > is open a MenuBar in a PopupPanel on right-click. Using > > > > event.preventDefault() seems to stop the event propagation in my > > > > browser (Firefox 3.6) : my menu is displayed, not the browser one. > > > > > I'm wondering if this behaviour was browser-specific ? I can't help > > > > but thinking that the event propagation may be different on another > > > > browser. I couldn't find a clear answer in the doc, but maybe I missed > > > > something. > > > > > Thanks for reading this post ! > > > > > Mathieu AGAR -- 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.
