yes, it is evaluated every time.  but it allows for more dynamic coding.  since
it is mouse click events only, speed is not exactly critical.

It means that you can select if you want the event to get through to the
browser.  this is the case with NS and i believ that we should be working
towards making the syntax the same for both.

No cancelling the browser event on a right mouse click disables menus in both
browsers regardless of whether or not you have loaded the right patch.

As for the version no. I'm not sure about ie4, it can be changed to ie4 if
needed.

Richard Bennett wrote:

> Although the code is nice and concise,
> doesn't this mean that this code is evaluated every time the mouse goes down
> on any layer, and all bubbled too layers, for any reason, instead of only
> for a layer that's about to be dragged ?
>
> If I'm not mistaken the current code is :
> if (is.ie) lyr.doc.body.onselectstart = null;
> is the unwanted textselecting effect IE5+ only?
>
> Richard
>
> ----- Original Message -----
> From: "Michael Pemberton" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, February 25, 2001 2:13 PM
> Subject: [Dynapi-Dev] Context Menus and Text Selection in IE5
>
> > I've combined the different methods of stopping IE from displaying
> > context menus and selecting text into the following lines of code.  They
> > should be placed just before the "return evt.browserReturn;" line.
> >
> >  if (is.ie5) {
> >     if (evt.type=='mouseup' && evt.button==3)
> > dyndoc.doc.oncontextmenu=(evt.browserReturn) ? null : function() {return
> > false};
> >     else if (evt.type=='mousedown')
> > dyndoc.doc.body.onselectstart=(evt.browserReturn) ? null : function()
> > {return false};
> >  };
> >
> > This means that there is now no need to repeat the code in all the
> > different widgets.  Just cancel the browser event and the above code
> > will do the rest.
> > --
> > Michael Pemberton
> > [EMAIL PROTECTED]
> > ICQ: 12107010
> >
> >
> >
> >
> >
> > _______________________________________________
> > Dynapi-Dev mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-dev
> > ____________________________________________________________
> > Get your domain name and domain-based e-mail from
> > Namezero.com. New!  Namezero Plus domains now available.
> > Find out more at: http://www.namezero.com
> >
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev

--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010



_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to