On Oct 2, 10:25 am, "Maikel Punie" <[EMAIL PROTECTED]> wrote:
> hi,
>
> i'm trying to rework my js files to use prototype, everything is working
> like a charm except the following line i can't get it replaced with an
> event.
>
> document.body.oncontextmenu = ContextShow;
>
> i trying to replace it with something like
>
> Event.observe( document.body, 'contextmenu', ContextShow );
>
> could it be that there is no definition for the oncontextmenu handler in
> prototype?

It could, if you are using an older version. Latest one doesn't check
against a list of event names, so observing an event on document.body
should work.

>
> regards,
> Maikel

--
kangax
--~--~---------~--~----~------------~-------~--~----~
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-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to