HighDots Forums  

Re: Disabling contextmenu doesn't work in IE since I've installed google bar

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: Disabling contextmenu doesn't work in IE since I've installed google bar in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
McKirahan
 
Posts: n/a

Default Re: Disabling contextmenu doesn't work in IE since I've installed google bar - 05-02-2006 , 12:26 PM






<emmajoh (AT) gmail (DOT) com> wrote

Quote:
Hi

I'm trying to disable IE contextmenu (on a right click) as I want to
create my own.
The problem is that since I've installed the latest version of the
google desktop, the script doesn't work.
No other script I found on the Internet is working anymore.

As you can see below, I've tried to catch every event I'm aware of:
Have you tried:

<body oncontextmenu="return false">




Reply With Quote
  #2  
Old   
emmajoh@gmail.com
 
Posts: n/a

Default Re: Disabling contextmenu doesn't work in IE since I've installed google bar - 05-02-2006 , 12:41 PM






I have tried that now but it doesn't work
I though writing <script>document.body=noRightClick;</script> was
the same anyway (where the function noRightClick() returns false).

McKirahan, I just saw you had a similar problem a while ago (it only
worked whith an alert() in the function).
How did you manage to solve your problem?


Reply With Quote
  #3  
Old   
Randy Webb
 
Posts: n/a

Default Re: Disabling contextmenu doesn't work in IE since I've installedgoogle bar - 05-02-2006 , 05:36 PM



emmajoh (AT) gmail (DOT) com said the following on 5/2/2006 12:41 PM:
Quote:
I have tried that now but it doesn't work
What doesn't work?

Please quote what you are replying to.

If you want to post a followup via groups.google.com, don't use the
"Reply" link at the bottom of the article. Click on "show options" at
the top of the article, then click on the "Reply" at the bottom of the
article headers.

<URL: http://www.safalra.com/special/googlegroupsreply/ >

Quote:
I though writing <script>document.body=noRightClick;</script> was
the same anyway (where the function noRightClick() returns false).
No. It is not even close. What do you think setting the document.body to
a reference to a function is supposed to do?

Quote:
McKirahan, I just saw you had a similar problem a while ago (it only
worked whith an alert() in the function).
How did you manage to solve your problem?
He didn't if he is trying to over ride the context menu.
Want an IE only no context menu? Use an .hta
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/


Reply With Quote
  #4  
Old   
McKirahan
 
Posts: n/a

Default Re: Disabling contextmenu doesn't work in IE since I've installed google bar - 05-03-2006 , 01:16 PM



<emmajoh (AT) gmail (DOT) com> wrote


[snip]

Quote:
I just saw you had a similar problem a while ago (it only
worked whith an alert() in the function).
How did you manage to solve your problem?
I presume your referring to my post of 08/24/2004
with a Subject of "Disable right-click without alert?".
(Randy Webb's responses were very informative.)

If you're referring to this code:

<script type="text/javascript">
function click() {
if (event.button == 2) alert("right-click disabled.");
}
document.onmousedown = click;
</script>

it does not disable right-click.

Try it but continue to hold the right mouse button
down and press Enter to acknowledge the alert().
The context menu will then be displayed.




Reply With Quote
  #5  
Old   
julpero@gmail.com
 
Posts: n/a

Default Re: Disabling contextmenu doesn't work in IE since I've installed google bar - 05-10-2006 , 03:56 AM



Hi, as you can read from
http://groups.google.com/group/Googl...27cd16b6f31511
I've tried to get more information of this problem. No luck... I have
to use GD2.


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.