Questions tagged [zeroclipboard]

Zero Clipboard is library that provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie, and a JavaScript interface. The "Zero" signifies that the library is invisible and the user interface is left entirely up to you.

zeroclipboard
Filter by
Sorted by
Tagged with
64 votes
6 answers
48k views

HTML5 alternative to flash-based ZeroClipboard for safe copying of data to clipboard?

With flash on the way out in many environments (iPhone, Android, IE10, etc...), is there any new solution forthcoming in any browsers that will allow a safe copy of information to the clipboard ...
jfriend00's user avatar
  • 697k
18 votes
4 answers
22k views

Selecting text in mobile Safari on iPhone

I'm trying to make it easy for an iphone user to copy some text to the clipboard in mobile safari. As in the usual "touch-hold-copy". There is a specific bit of text I want to a user to copy. I have ...
Goldy's user avatar
  • 201
12 votes
4 answers
33k views

How to actually use ZeroClipboard in jQuery?

I just can't get this thing. How is ZeroClipboard supposed to work? Why does it need to move the flash-element over the copied text? I've read this thing: http://code.google.com/p/zeroclipboard/wiki/...
Martti Laine's user avatar
  • 12.9k
12 votes
1 answer
5k views

How to programmatically copy asynchronous dependent content to the clipboard following a click?

I'm trying to programmatically use the execCommand in Chrome (Build 43) to copy the result of an asynchronous JSONP request to the clipboard. Here is a snippet of the logic : loadContent() function ...
Gabriel Kohen's user avatar
4 votes
2 answers
12k views

How to copy using clipboard.js with dynamic content and triggers

After a click on .fw-code-copy-button I would like to copy source code from it's nearest container. .fw-code-copy-button-s are created dynamically, after user click dedicated "view source" button. ...
Dariusz Sikorski's user avatar
11 votes
5 answers
6k views

ZeroClipboard: swf loaded, but not working

ZeroClipboard doesn't work and it doesn't throw any errors (javascript console). The website is hosted on a HTTPS webserver running on localhost. Both the website and the SWF are served over HTTPS by ...
squarebrackets's user avatar
7 votes
2 answers
988 views

Can I GET data FROM the clipboard with the new ZeroClipboard?

I'm using this fresh version of ZeroClipboard in a project: https://github.com/jonrohan/ZeroClipboard Creating buttons to copy content from HTML really works like a breeze (compared to zClip or the "...
user1673579's user avatar
6 votes
5 answers
11k views

zClip - ZeroClipboard.swf deleted - Need new file

I'm using zClip on my website to copy several things in textboxes, I got everything working just fine but now, without changing anything, it stopped working. The reason is that the host of the file ...
user1975007's user avatar
5 votes
9 answers
57k views

How to disable printscreen with javascript?

I want to make function in javascript which change value of clipboard after the printscreen was used. Is that possible? $(document).keyup(function(e){ if(e.keyCode == 44) //change clipboard ...
GoobyPrs's user avatar
  • 605
3 votes
2 answers
9k views

copy text to clipboard with jquery or javascript

how to copy some text to the clipboard with jquery or javascript, from google. i know there is a pludgin named zeroclipboard http://code.google.com/p/zeroclipboard/ can do this with cross browers....
runeveryday's user avatar
  • 2,771
3 votes
2 answers
3k views

zeroclipboard fire click event via jquery

ZeroClipboard is a javascript + flash script that allows the browser to put text into the clipboard, it puts a transparent flash over the selected element , and when you click it you can insert text ...
Nikola's user avatar
  • 556
3 votes
3 answers
8k views

Zeroclipboard multiple elements

I'm having trouble creating multiple Zeroclipboard instantiations in my code, with each instantiation launching a popup window after it is invoked. <a class="xxx" href="popup.url.php" ><span ...
Andrei C's user avatar
  • 211
2 votes
1 answer
4k views

How to load an Ajax response into clipboard using jQuery and ZeroClipboard?

I need a way to copy dynamically (Ajax) loaded content into the clipboard in a Web browser. There are many libraries out there that will mimic the copy-to-clipboard functionality using Flash. However,...
newtonapple's user avatar
  • 4,123
2 votes
2 answers
5k views

difficulty with zeroClipboard

I am using zeroClipboard but I don't manage to have it working. Here is my HTML markup: <div id= 'd_clip_button'> <img class = 'displayed' src="{{ asset('bundles/yopyourownpoet/...
fkoessler's user avatar
  • 7,046
2 votes
1 answer
8k views

How can I get a simple ZeroClipboard copy-to-clipboard setup working within jQuery on jsFiddle on a single click?

I'm struggling to get ZeroClipboard working within a jQuery context. The basic usage I'm after is clipping the text of each div with the class copy on click. The following jsFiddle works on double ...
Ryan's user avatar
  • 15k
1 vote
1 answer
8k views

Copy text to clipboard from jsf / primefaces

I am using https://github.com/patricklodder/jquery-zclip to implement copy to clipboard function. it should copy some text, but for now i want it to be anything really... but its not working at all. ...
Atais's user avatar
  • 11.1k
1 vote
3 answers
3k views

zeroclipboard element not working when located inside secondary/non-default jQuery tab

I've got a page with jQuery tabs, and I'm trying to link a div element inside a secondary tab with zeroclipboard. Unfortunately, it's not working because I suspect the secondary tab is initially ...
Barrrdi's user avatar
  • 1,043
1 vote
1 answer
1k views

How to Copy to Clipboard in JavaScript and make it HTML?

I found some nice solutions here on how to copy text in JavaScript to the clipboard in: How do I copy to the clipboard in JavaScript? But is there any way to give it a type? Want I want is to paste ...
Werner's user avatar
  • 1,797
0 votes
2 answers
4k views

ZeroClipboard for copy to clipboard in ASP.NET MVC

I want to add a copy-to-clipboard functionality to my ASP.NET webpage. I found ZeroClipboard, but I couldn't find any single example wroking. Can I make it work on local computer or do I need to ...
DotnetSparrow's user avatar
0 votes
1 answer
2k views

Not able to find $(this) object's parent in zeroClipboard (v2.1.6) plugin

Got the answer with the help of @LanderVanBreda zeroClipboard.on('copy', function (event) { var highlight = $(event.target).parent().nextAll('.highlight').first() event.clipboardData.setData("...
Syed's user avatar
  • 16.1k
0 votes
4 answers
2k views

zeroClipboard complex css problem

i have list of images and on mouse over there is option box shows under it, which has embeded code input box to copy from. now i implemented zeroclipboard on it, for making copy function work on click,...
Basit's user avatar
  • 16.7k
0 votes
1 answer
143 views

Zeroclipboard not copying on first Click

I have the code and it is not working on first click, but on the second click it is working. $("#btnCopiar").on("click",function(){ var clipBoardObj = new ZeroClipboard($("#btnCopiar"), { ...
s_k_t's user avatar
  • 705