Tested on Mozilla 3.6, IE7/8 and Chrome, using both methods at the
same time :

event.preventDefault();
event.stopPropagation();

Need to test this on IE6 :(

Thanks again for your help !

On 3 août, 13:43, magat <[email protected]> wrote:
> 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 GWTeventhandling(handler registration method) instead of the
> > DOMeventhandling (pre 1.6).
>
> > On Aug 2, 3:04 pm, Falcon <[email protected]> wrote:
>
> > > (You can also useevent.returnValue = false, at least for IE.)
>
> > > On Aug 2, 3:50 pm, Falcon <[email protected]> wrote:
>
> > > > In browsers that don't support the W3Ceventmodel, 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 theeventfrom 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 theeventpropagationin 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 theeventpropagationmay 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.

Reply via email to