473,662 Members | 2,547 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to Copy a Text to Clipboard

24 New Member
Dear All,

Would you please tell me how to copy a text to clip board using JQuery?
What I want is something like the code toolbar in the following URL
http://www.nicegass.co .kr/2009/07/why-jquery.html
I try to find it in internet but it is all complex code and I am unable to understand it, so if you can give me a simple example I will appreciate that.

Thanks in advance
Jun 30 '13 #1
5 12551
Luuk
1,047 Recognized Expert Top Contributor
less than 5 minutes of Google, and I found:
http://www.jquery4u.com/plugins/jque...ard-4-options/

Did YOU try to search for it?
Jun 30 '13 #2
hdbbdh
24 New Member
Thanks Luuk
By sure I try to search for it, and by sure I reached to this page, but I am unable to understand how it is done, and also I am unable to insert it in my page, and that's why I ask for simple example.
Jul 2 '13 #3
Luuk
1,047 Recognized Expert Top Contributor
I never actually tried the software that is published on that link.
When i need something copied, i select it, right mouse-click and copy it...

If you need a simple please search on
Or, you could try to learn, and understand this solution that is posted on the link i gave you ;)
Jul 2 '13 #4
hdbbdh
24 New Member
Thanks Luuk.
Anyone has any other suggestion please?
Jul 3 '13 #5
pka246
2 New Member
The ZeroClipboard library provides an easy way to copy text to the clipboard.

http://zeroclipboard.org/
Oct 3 '15 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
2585
by: Meikel | last post by:
I created a ClipboardUtils class which makes it easy to copy Strings or images to the clipboard. I don't claim that it's no way perfect, but has been useful in my applications so far. If you try it out and have improvement suggestions, let me know. It can also copy a graphical image of any JComponent to the clipboard. I also wondered how I could copy text AND images to the clipboard at the same time (e.g. an image with some explanatory...
2
3698
by: cv | last post by:
Hi all, How do I copy from clipboard to any control of my page? Any help wud be appreciated. TIA, cv
0
1203
by: DL | last post by:
Can somebody tell met how to copy text from a control item to a textbox by pressing a button. control item is in this case a pdf document. ( don't know if you name it like this but it sounds nice...) Would greatly apreaciate your effort...
1
2702
by: Manuel | last post by:
hello everyone in my website i use the methods ".execCommand('SelectAll')" and ".execCommand('Copy')" to copy a defined area to the clipboard, that works fine, but now i wanted to make my website compatible with macintosh. the same functions dont work on a mac, so i am asking if anyone knows how the "copy to clipboard" function (for text and images!) works on macintosh or if it works at all on a mac.
3
2131
by: Jean-Luc ERNST | last post by:
Hello, I apologize for my english, I'm french speaking... Could someone help me to finalize a little project? I'm writing a form for my site but I'don't know many in Javascript (I'm a newbee). When the form is completed, the visitor may display it in another window for verification, printing or sending by e-mail. When he opens the second window, the form's content is send automatically to the clipboard so it could be pasted in another...
3
2150
by: worzel | last post by:
need some simple code to copy text to clipboard in c# - my app has right click > copy to clicpboard feature, which is best way to do this?
2
1530
by: Jay | last post by:
Is there a way to copy text that is always in the same place in a word document, (such as an id number in my case) and then paste it into a text box in another program? I've tried various approaches but none of them seem to work. Thank You
10
3339
by: Sillu | last post by:
I'ld like to create a web page, from which no one can select the text simply, copy frm there n paste at another location. In simple means, i'ld like to stop copy process from my web page. Plz suggest JavaScript code for this purpose.
0
1407
by: Curious | last post by:
I'm working on fixing the command of "Copy to Clipboard" from a data grid. The current implementation has two problems: 1) There are two extra columns copied to clipboard that are invisible in the grid. I'll need to remove these two columns from clipboard. 2) The headings are not being copied to clipboard.
1
2130
by: defiler007 | last post by:
Hello! I want to monitor all windows copy to clipboard evets and add the objects that are copied to the clipboard to a list in my application.. how can I do that?
0
8432
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8857
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8764
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7367
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6186
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4347
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2762
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1993
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1752
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.