473,382 Members | 1,437 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Customize RightClick Menu

Hi All,
I am using a Web Application and I want to customize Right Click Menu
as following:-

Do Nothing when user does a Right Click.

When user select some text and does a Right Click he/she should have a
option of Copy and Paste.

Any Ideas how can this be done.

Thanks

Sep 5 '06 #1
5 2508
*** ri****************@gmail.com escribió/wrote (5 Sep 2006 10:23:09
-0700):
I am using a Web Application and I want to customize Right Click Menu
as following:-

Do Nothing when user does a Right Click.

When user select some text and does a Right Click he/she should have a
option of Copy and Paste.

Any Ideas how can this be done.
We might be able to provide better advise if you tell us why you need this
and what you're trying to accomplish. I hope you aren't trying to protect
your source code...

BTW, Mozilla Firefox has a security feature to explicitly avoid what you're
trying to do.

--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--
Sep 5 '06 #2
Alvaro G. Vicario said the following on 9/5/2006 6:08 PM:
*** ri****************@gmail.com escribió/wrote (5 Sep 2006 10:23:09
-0700):
>I am using a Web Application and I want to customize Right Click Menu
as following:-

Do Nothing when user does a Right Click.

When user select some text and does a Right Click he/she should have a
option of Copy and Paste.

Any Ideas how can this be done.

We might be able to provide better advise if you tell us why you need this
and what you're trying to accomplish. I hope you aren't trying to protect
your source code...

BTW, Mozilla Firefox has a security feature to explicitly avoid what you're
trying to do.
And Opera doesn't allow it at all.

Want a customized Right Click Menu that is dependable on the Web? Write
your own browser.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Sep 5 '06 #3
Hi Alvaro,
I am trying to protect my Source code but thats not my main
concern.....I also dont want user to Browse Back and Forward using
RightClick Menu.

I just want them to have Options of RightClick Menu which is generated
when we select/highlight a text on a webpage which are Undo, Copy,
Paste, Cut , Delet, Select All etc.

I hope this further expalins what I am trying to do.

Thanks

Sep 6 '06 #4
Hi Randy,
Thanks for your Advice...I will let you know once I get around with
what I am trying to achieve. Unfortunately this is the first project I
am dealing with lots of client side scripting so my knowledge is
limited.

Thanks all you folks out there for your suggestions.

Sep 6 '06 #5
wrote on 06 sep 2006 in comp.lang.javascript:
Hi Alvaro,
I am trying to protect my Source code but thats not my main
concern.....I also dont want user to Browse Back and Forward using
RightClick Menu.

I just want them to have Options of RightClick Menu which is generated
when we select/highlight a text on a webpage which are Undo, Copy,
Paste, Cut , Delet, Select All etc.

I hope this further expalins what I am trying to do.
[please always quote what you are replying to,
this is not email but usenet,
and so we do not know what it is that it would expalin
what you are trying to do further.]

No, you don't own my browser, so preventing me to use it to the full
extent is an insult and I would, found that, opt not to return to your
site anymore, which could harm your business.
... Browse Back and Forward ...
This is easly done by the BS or alt-leftarrow and alt-rightarrow key
combinations, or the relevant browser icons or menu.

I doubt that many ordinary surfers even know or have ever used the back
function in the rightclick menu.

Yes, some page sequences, like in form submission are compromized when
executing a pageback, however, you should be able to detect that and
prevent the unwanted consequences with your [preferably serversided IMHO]
code.
... I am trying to protect my Source code ...
You cannot protect it but from the coding ignorant,
who would not understand it or have use for it anyway.
If you don't know that now,
your code surely is not innovative enough to be protected.

Since hopefully you have learned al lot of clientside coding by
viewsource viewing otherman's code, don't you feel a slight obligation to
give others the ability to viewsource view your selfprofessed as
important code?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Sep 6 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: deko | last post by:
I've found that the "Remove Filter/Sort" selection in the Shortcut menu (displayed on right click) produces ugly, untrappable errors, even though "Allow Filters" is set to No in the subform. ...
2
by: JMCN | last post by:
hi i'm having a problem with the customize a shortcut menu. i read the ms office assistance: customize a shortcut menu/delete a command or add to a shortcut menu and followed the simple...
8
by: Ken Yu | last post by:
Hi, How can i disable "RightClick Menu" in Internet Explorer, when access the frontpage ? tks a lot ! Ken
0
by: Peter van der Veen | last post by:
Hi I have a treeview and a bound contextmenu to delete a node. When the user rightclicks the node the menu pops up and one can chosse delete. So far so good. But .... When i use...
1
by: goRide | last post by:
Hi, I'm looking of a way (preferred - a ready class or dll) to customize the context menu. many application has more controls inside the context menu (like textbox, sliders, checkbox, panel...
3
by: Bob Quintal | last post by:
In access 2003, a toolbar has a dropdown to allow customizing. In the toolbar properties->options is a checkbox labelled Allow Customizing. Unchecking this doesn't prevent me from customizing the...
0
by: temp304 | last post by:
Customize Dropdown Menu is designed to display some choices, as: languages, countries, themes,... but it's differrent from original version in browsers. This tool combine CSS and JavaScript to create...
0
by: Sky | last post by:
I have an Access 2003 front-end database with custom toolbars. The toolbars work fine. One annoying feature is that at the far right edge of each custom toolbar there a small dropdown arrow....
1
by: cirfu | last post by:
when i rightclick in python idle i get set breakpoint or something. n options i dont find a way to change to the normal copy/paste options.
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.