View Full Version : Copy to clipboard?
Eternity Angel
08-29-2002, 08:08 PM
Quick question.
Can anyone teach me how to copy the contents of a textbox to a clipboard, or anything to the clipboard?
Eternity Angel
08-29-2002, 09:00 PM
Geez, must be hard to do, or just not anyone online knows how...
So by not receiving a reply in 52 minutes, you assume no one can answer your question? :rolleyes:
That won't help generate responses quicker...
Anyway, IE has a document.execCommand('Copy') which will copy whatever is selected to the clipboard. Use textranges or the select() method of an <input/> to select it.
Eternity Angel
08-29-2002, 09:23 PM
1) It got you to reply.
2) I do not UNDERSTAND it, I am asking if you can teach me by examples.
Originally posted by Eternity Angel
1) It got you to reply.
No, it didn't. I would have replied regardless of whether you complained, because this was a simple enough question to answer without requiring much effort. As a matter of fact, I was tempted to not reply just because of your impatience.
All your unfounded complaining did was lower my opinion of you - 52 minutes for an answer is an unreasonable expectation for a forum run solely off of volunteers who have better things to do. We often answer questions in under 10 minutes, but that's more luck than consistancy.
Anyway, an example of highlighting and copying (untested because I don't feel like opening IE):
<input type="text" onclick="this.select();document.execCommand('Copy')"/>
Eternity Angel, please be more patient in the future, not to mention appreciative. You may have gotten someone to respond to you this time by using heavy-handed tactics (in this case bumping up your thread), but I assure you it won't work forever. Behavior such as this is highly frowned upon here.
Eternity Angel
08-29-2002, 09:49 PM
I know this.
I am not some rude little 12 y/o or anything, I was just being impatient because I had the document I needed all ready within the 52 minutes, yet no one had explained copying. So, I bumped it.
I am sorry, and thank you jkd for replying at any rate.
I am sure there are more annoying people that bump far more often, and are ruder than me.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.