I just found that observing ContextMenu works as expected, so I guess my
question is irrelevant now, but it might come in useful for someone else.
Juriy Zaytsev- if you read this, your context menu was an awesome start.
I couldn''t find any contact details for you in the 30 seconds I looked
on
your site but with a fair bit of hacking I managed to get custom functions
to be executed on each context menu link so just yell if you want to see
what you did, perhaps you can merge it in.
Gareth
On 5/24/07, agrath <agrath-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
>
> Hey guys
>
> I am trying to get a custom context menu to pop up when a row is
> clicked in a table.
> The context menu code is based on
> http://yura.thinkweb2.com/javascript/contextMenu/
>
> And i''ve merged Ticket #7520 (isRightClick, isMiddleClick) into
the
> latest prototype release so I can use them.
>
> In IE, which is the only browser i''ve been testing in at the
moment
> (internal application),
> If I am observing MouseDown, then I can detect right clicks using
> isRightClick.
> If I am observing Click, then I can''t detect right clicks using
> isRightClick.
> If I am observing Click, then Event.stop(e) prevents the context menu
> from appearing
> If I am observing MouseDown then Event.stop(e) doesn''t prevent the
> context menu from appearing.
>
> I think this is partially explained in the
> http://www.unixpapa.com/js/mouse.html
> document, which describes a lot of inconsitencies in handling mouse
> events between the browsers.
>
> Does anyone have a nice solution for either detecting right mouse
> button from click, or disabling context menu from mousedown?.. or any
> suggestions.
>
> I''ll put up a stripped down example of my mash of sortabletable/
> contextmenu code up when i''m done with this project and I have
time to
> strip it down.
>
> Gareth
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---