[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Paste button in HTML?

Posted on 2003-10-22
3
Medium Priority
?
239 Views
Last Modified: 2006-11-17
Is there a piece of simple code that allows a paste button on a web page to paste the contents of the clipboard into a text box on the page. Also while I'm asking, is there a way to have a copy and a cut button too?
If there is I will up the points to 150 for anyone who can direct me to somewhere with the code or provide me with the code.
Thanks
0
Comment
Question by:wjdashwood
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Author Comment

by:wjdashwood
ID: 9605490
No replies as yet, so I have increased the points for the answer and will increase them again to 350 to get the cade.
Thanks
0
 

Accepted Solution

by:
emmee earned 1050 total points
ID: 9606034
Hi,

From your question, it looks as if you need something in javascript called document.execCommand("Copy"), document.execCommand("Paste"), document.execCommand("Cut")  They act  like the cut, paste, copy facilities you get in say MS Word, MS Excel.

What you need to do is create a form button in HTML and then create a javascript function which get's called when you click on the button.  Therefore, if you wanted a separate button for cut, copy and paste you would have three small functions with for each facility.  

For more information maybe you could search google for 'document.execCommand in javascript'

I hope this helps as I don't think I've answered your question fully.

Emmee




0
 

Author Comment

by:wjdashwood
ID: 9608091
This is apparently IE specific. Is there anything more general? Either javascript or otherwise.
That is what I am looking for though, just would prefer something that could work on all systems.
Thanks
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question