Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:40
Cut copy paste in Context Menu on right click.
Poster: Manojbabu
Dated: Monday February 26 2007 - 13:56:09 GMT
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.
Poster: Ruth
Dated: Tuesday February 27 2007 - 17:15:21 GMT
Hi,
You might want to take a look at
http://www.milonic.com/forum/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