I think it should be removed in the next release. Why is it even
needed? If you want to block right click events, you should include
the code in your own page. It doesnt really need to be in the API.
Even if we can do it cross-browser, I'm still going to hate it.
--
Robert Rainwater
On 5/22/2001, 5:13:55 PM EST, Richard wrote about "[Dynapi-Help] Enabling the right
mouse click on a web page":
> 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 -----
> From: Michael Pemberton
> To: [EMAIL PROTECTED]
> 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
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help