> Actually guys i want to ask that as i know the "contextmenu" is depricated
> in XHTML so is there any other way which will resist in both.

AFAIK, XHTML doesn't define those things; it defines how you write
HTML in XML, not what's valid within that HTML.

The latest HTML spec (still a work in progress) continues to list the
contextmenu event.[1]

None of which means you shouldn't try to avoid the contextmenu event
when you can, given how it varies amongst browsers. :-)

[1] http://www.w3.org/TR/html5/webappapis.html#handler-oncontextmenu
--
T.J. Crowder
Independent Software Consultant
tj / crowder software / com
www.crowdersoftware.com


On Jun 7, 2:33 pm, ankit jain <ankit.i...@gmail.com> wrote:
> Thanks Victor i agree.
> Actually guys i want to ask that as i know the "contextmenu" is depricated
> in XHTML so is there any other way which will resist in both.
>
> Thanks
> Ankit
>
>
>
> On Mon, Jun 7, 2010 at 7:12 AM, Victor S <victor.s...@gmail.com> wrote:
> > I find it interesting to surf the web on iPad which does not have a
> > right click context menu... And I've been thinking about the iPad and
> > other touch interfaces and the way they handle interaction on
> > screen... Mimmicking that touch interface with the mouse seems
> > tempting and the disabling of right click as well as selection of
> > objects on screen can be useful in that context... But of course some
> > other way of interacting with the content on screen will have to be
> > allowed.. Click and hold or give some obvious buttons to deal with
> > content... To watch the way interfaces and user interaction will
> > change over the next few years will be interesting...
>
> > On Jun 5, 2:08 pm, Peter De Berdt <peter.de.be...@pandora.be> wrote:
> > > A user that wants to enable it again, will find a way. There's no way
> > > to absolutely prevent it.
>
> > > As far as I know, Opera allows for the contextmenu event to be enabled
> > > (wasn't by default last time I checked) but doesn't allow to stop the
> > > event.
>
> > > You can however consider the following:
> > > - If you're trying to protect images from being downloaded through the
> > > contextmenu, just make them a CSS background instead of an <img>. This
> > > method is on par with disabling the contextmenu (except that the
> > > context menu will still show).
> > > - Otherwise you can overlay a div on top of the part of the page
> > > you're trying to disable it on and capture the mouseclick events on
> > > the element.
>
> > > All I can say is that the few sites I've come across that intercepted
> > > the contextmenu event will never get a visit from me again. It's
> > > annoying to say the least and I don't understand why anyone would do
> > > it. If you want to protect images or files, watermark them in some
> > > way, a much better and more secure method anyway.
>
> > > On 05 Jun 2010, at 17:20, Shane McCarron wrote:
>
> > > > Are there still browsers that don't support the contextmenu event
> > > > class though?
>
> > > > On Sat, Jun 5, 2010 at 4:40 AM, Johan Arensman <johanm...@gmail.com>
> > > > wrote:
> > > > You can using Event.observe()
>
> > > > Event.observe(window, 'contextmenu', function(event) {
> > > > event.stop();
> > > > });
>
> > > > On Sat, Jun 5, 2010 at 6:29 AM, ankit.it09 <ankit.i...@gmail.com>
> > > > wrote:
> > > > How to disable right click in a web page using prototype , i mean is
> > > > there any method.
>
> > > Best regards
>
> > > Peter De Berdt
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Prototype & script.aculo.us" group.
> > To post to this group, send email to
> > prototype-scriptacul...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > prototype-scriptaculous+unsubscr...@googlegroups.com<prototype-scriptaculou 
> > s%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/prototype-scriptaculous?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to