Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Can I holdup and activate the context-menu as a sub-menu?

Reply
Thread Tools

Can I holdup and activate the context-menu as a sub-menu?

 
 
Michel
Guest
Posts: n/a
 
      07-06-2004
I like to show a inbetween selfmade menu when rightclicking the page.
So on the first line I want to add "Default right-click menu".

So first I need to capture it, then I need to stop the context-menu
from showing up, then show a self designed pop-up menu and then I need
to be able to activate the real client-site context-menu from this
menu without clicking the right mouse button.

Any idee welcome, thanks!
 
Reply With Quote
 
 
 
 
Richard Cornford
Guest
Posts: n/a
 
      07-06-2004
Michel wrote:
> I like to show a inbetween selfmade menu when rightclicking
> the page. So on the first line I want to add "Default
> right-click menu".
>
> So first I need to capture it,


oncontextmenu events, where supported.

> then I need to stop the context-menu
> from showing up,


That just cannot always be done. Some browsers allow the context menu to
be cancelled and others don't (and others give the user the choice).

> then show a self designed pop-up menu and then I need
> to be able to activate the real client-site context-menu from this
> menu without clicking the right mouse button.


I don't think that can be done at all. Once you have cancelled the
original context menu event that is the end of that so you would need to
induce the browser to re-open it. I am not sure if generating a
contextmenu event would result in the context menu appearing, but
support for creating and triggering your own events is distinctly patchy
anyway.

Richard.


 
Reply With Quote
 
 
 
 
Michel
Guest
Posts: n/a
 
      08-02-2004
Richard Cornford:
> Michel wrote:
> > I like to show a inbetween selfmade menu when rightclicking
> > the page. So on the first line I want to add "Default
> > right-click menu".
> >
> > So first I need to capture it,

>
> oncontextmenu events, where supported.
>
> > then I need to stop the context-menu
> > from showing up,

>
> That just cannot always be done. Some browsers allow the context menu to
> be cancelled and others don't (and others give the user the choice).
>
> > then show a self designed pop-up menu and then I need
> > to be able to activate the real client-site context-menu from this
> > menu without clicking the right mouse button.

>
> I don't think that can be done at all. Once you have cancelled the
> original context menu event that is the end of that so you would need to
> induce the browser to re-open it. I am not sure if generating a
> contextmenu event would result in the context menu appearing, but
> support for creating and triggering your own events is distinctly patchy
> anyway.


Still I like to try it, if only I know how to generate a contextmenu
event from javascript?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
what does this error mean `activate': can't activate activesupport (=3.0.1, runtime) for ["activerecord-3.0.1"] Junkone Ruby 2 10-27-2010 09:13 AM
Can't activate Norton's Auto-Protect in SystemWorks Malcolm Function Computer Support 12 05-14-2004 08:29 AM
Can I activate my Kinox DS-131 from the PC? Rasmus Nielsen Digital Photography 1 09-25-2003 11:59 PM
Can't activate ethernet card rte Computer Support 3 09-14-2003 03:03 PM
ethernet card - can not activate rte Computer Support 0 09-14-2003 06:05 AM



Advertisments