I would greatly prefer a dynamic menu stopping method that acts the same for ALL browsers.  As it stands, you still need to cancel the browser event to stop the menu in NS.  Isn't it better the use the same method in IE?

I find that there are some parts of a page where the mouse menu should be allowed while still stopping it over others.  This is the only way of doing it.

Richard Bennett wrote:

 Michael, do you know why we are doing this at all.As things stand now, you only cancel right mouse click if you include the events files, so half the examples have right-mouse, half don't.And we are only doing it in IE5.Couldn't we better have a generic right-mouse-cancel that can be included if needed? Richard.
----- Original Message -----
Sent: 22 May, 2001 17:44
Subject: Re: [Dynapi-Help] Enabling the right mouse click on a web page
 I posted a patch to this previously.

It involves modifying the mouse.js file.

Here's the jist of it:
    - remove lines 195 and 213 (the oncontextmenu bit)
    - insert the following at line 140 (before the return line)
    else if (is.ie) {
    if (evt.type=='rtmouseup')
      document.oncontextmenu=evt.browserReturn?null:function() { return false; };
    else if (evt.type=='mousedown')
      document.onselectstart=evt.browserReturn?null:function() { return false; };
  };

This should now mean that the menu (and text selection) is stopped by cancelling the browser event.

It is done on an event-by-event basis and not in a blanket fashion as is currently the case.

Nadia Human wrote:

Hi, How do I enable the right mouse click on a web page? Thanx,Nadia Human
--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010
 

--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010
 

Reply via email to