Cut copy paste in Context Menu on right click.

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Manojbabu
Beginner
Beginner
Posts: 1
Joined: Mon Feb 26, 2007 2:49 pm

Cut copy paste in Context Menu on right click.

Post by Manojbabu »

Can u help me how to do cut + copy & paste in context menu right click.

I need to for entire form, where ever user cut/copy the text from any where in entire form and paste it to any of the text box / text area.

Can any body help in this regarding. Its very urgent.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

You might want to take a look at

viewtopic. ... 0065#30065.

It has more information and links to various functions about copy and paste, and an explanation of how to do something in the menu to copy and paste. However, as far as I know there's not really a way to set up a js function that will let users right click, highlight copy and paste randomly selected text. And that is what you would need in order to be able to apply the function in that context menu. How is the menu to know what text has been copied? That particular function is something in the browsers' internal programming and it is not necessarily the same in all browsers. The 2nd post in that link has links to outside html/js forums which talk about copy and paste. And, there is also a mozilla forum post I found about granting access to the clipboard. If you can figure out how to do a function like this, I know a lot of people who would be grateful. It's been asked a number of times.

http://kb.mozillazine.org/Granting_Java ... _clipboard

Ruth
Post Reply