Comments (24)
Could you please explain your scenario a little further, or show some code? With the way you've described it so far, I'm not sure why you would even use ZeroClipboard for this as it sounds like you are just putting the contents into a mailto:
link rather than needing to put it into the user's clipboard at all.
from zeroclipboard.
Apologies for any confusion in my original description of the problem.
ZeroClipboard copies some HTML content to clipboard because I am unable to pass the content with mailto:[email protected]?body=somecontent
. Workflow is that users click the movie button, which opens a blank email. They then press Copy-V (or use the menu) to paste the content in the blank email body.
Apologies for the confusion.
I'll paste some sample code below (I've changed some variable names and such, since this is a public forum). This code works fine with Chrome, IE 7/8/9, and Firefox 17 and below. The delay/freezing problem began immediately after the version 18 auto update. Checked same script with another machine still on FF 17, no delay/freezing. I updated that machine to FF 18, and the freezing problem began.
<$php $output_clean = "<p>Some vanilla HTML/CSS here (avg size of content 200kb)"; ?>
<script type='text/javascript' src='/includes/ZeroClipboard-1.1.6/ZeroClipboard.js'></script>
<script language="JavaScript">
function sendMail()
{
location.href='mailto:?subject=DataResult&body=%0D%0DResults below:%0D%0D';
}
var clip = new ZeroClipboard( document.getElementById('d_clip_button') );
clip.on( 'complete', function(client, args)
{
//alert("Copied text to clipboard: " + args.text );
sendMail();
});
clip.on( 'mouseOver', function(client, args)
{
//alert("Copied text to clipboard: " + args.text );
clip.setText( document.getElementById('fe_text').value )
});
</script>
<textarea id="fe_text" cols=50 rows=5 onChange="clip.setText(this.value)" style="display: none;"><?php echo $output_clean; ?></textarea>
<div id="d_clip_container" style="position:relative">
<div id="d_clip_button" class="button_copy_to_clip">
<img src='clipboard_16.png' height=16 border=0> <b>Copy Record</b>
</div>
</div>
from zeroclipboard.
I'm seeing lots of FF18 issues out there on the web, both for JS and Flash. Could you please share your OS info (e.g. "Windows 7 (64-bit)") and Flash version (e.g. "11.5.31.5")? You can get your Flash version by visit this page [using Firefox 18].
Most of the issues I've seen so far mentioned that FF18 worked fine if they downgraded their Flash back to 10.3, so it seems to be a FF18 + Flash 11 incompatibility of some kind that — I'm assuming — Adobe (Flash) will have to fix on their end.
from zeroclipboard.
I've confirmed that the problem exists on XP, Windows 7 (64-bit). On my
box the flash version is 11.5.502.146. It will take some effort to get
flash versions from all my users unless this can be done programatically.
On Tue, Jan 15, 2013 at 12:16 PM, James M. Greene
[email protected]:
I'm seeing lots of FF18 issues out there on the web, both for JS and
Flash. Could you please share your OS info (e.g. "Windows 7 (64-bit)") and
Flash version (e.g. "11.5.31.5")? You can get your Flash version by visit this
page http://www.adobe.com/software/flash/about/ [using Firefox 18].Most of the issues I've seen so far mentioned that FF18 worked fine if
they downgraded their Flash back to 10.3, so it seems to be a FF18 + Flash
11 incompatibility of some kind that I'm assuming Adobe (Flash) will have
to fix on their end.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/73#issuecomment-12278234.
from zeroclipboard.
Also confirmed the problem persists when running FF18 in safe mode (with
all addons disabled)
On Tue, Jan 15, 2013 at 12:50 PM, Adrya Stembridge <
[email protected]> wrote:
I've confirmed that the problem exists on XP, Windows 7 (64-bit). On my
box the flash version is 11.5.502.146. It will take some effort to get
flash versions from all my users unless this can be done programatically.On Tue, Jan 15, 2013 at 12:16 PM, James M. Greene <
[email protected]> wrote:I'm seeing lots of FF18 issues out there on the web, both for JS and
Flash. Could you please share your OS info (e.g. "Windows 7 (64-bit)") and
Flash version (e.g. "11.5.31.5")? You can get your Flash version by visit this
page http://www.adobe.com/software/flash/about/ [using Firefox 18].Most of the issues I've seen so far mentioned that FF18 worked fine if
they downgraded their Flash back to 10.3, so it seems to be a FF18 + Flash
11 incompatibility of some kind that I'm assuming Adobe (Flash) will have
to fix on their end.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/73#issuecomment-12278234.
from zeroclipboard.
hmm, maybe there is a flash clipboard limit that we're un aware of yet?
from zeroclipboard.
Not sure about any limits in Flash... certainly nothing in their documentation. As for Windows, my past experience suggests that the maximum clipboard size is roughly equivalent to the amount of free virtual memory.
from zeroclipboard.
e.g. http://stackoverflow.com/questions/11137940/maximum-size-of-clipboard-in-current-browsers
from zeroclipboard.
I need to get a working example of the problem on a public site someplace.
I'll need to de-identify some data to make that happen.. if you can bear
to wait another day or two I will get something cooked up for inspection.
On Tue, Jan 15, 2013 at 2:08 PM, James M. Greene
[email protected]:
e.g.
http://stackoverflow.com/questions/11137940/maximum-size-of-clipboard-in-current-browsers—
Reply to this email directly or view it on GitHubhttps://github.com//issues/73#issuecomment-12283612.
from zeroclipboard.
Sure, let us know when you the repro available. Thanks!
from zeroclipboard.
Demos available here:
http://southeastgenetics.org/zctests/
On Tue, Jan 15, 2013 at 2:23 PM, James M. Greene
[email protected]:
Sure, let us know when you the repro available. Thanks!
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/73#issuecomment-12284352.
from zeroclipboard.
Update:
The mozilla folks are looking into the problem with Firefox from their end: https://bugzilla.mozilla.org/show_bug.cgi?id=829557
Summary: FF 18 and above freezes when clicking ZeroClipboard 1.0.7 (confirmed by multiple testers).
There is a separate issue with ZeroClipboard 1.1.6 under #87
from zeroclipboard.
Ugh, sounds like Firefox 18-19 users are screwed... hopefully not FF20 users! 😕
From Bugzilla:
It's unlikely we'll fix for FF19 at this point (this is a non-critical regression in FF18), but we'll definitely take a fix for FF20 once ready.
from zeroclipboard.
For the record:
According to the linked Firefox bug, this is not a problem in newer versions of ZeroClipboard. @pkbarbiedoll cannot upgrade due to needing the [half-baked] rich clipboard support that 1.0.7. We will get that functionality back in when we revisit #22.
from zeroclipboard.
Just confirming the bug for the following configuration:
FF 19.0.1 / Win 8 64bit / zeroclipboard v1.1.7
FYI this is a snippet I'm using to disable the "complete" callback on FF18 & FF19
<script language="JavaScript">
var enableZC = true;
var is_firefox18 = navigator.userAgent.toLowerCase().indexOf('firefox/18') > -1;
var is_firefox19 = navigator.userAgent.toLowerCase().indexOf('firefox/19') > -1;
if (is_firefox18 || is_firefox19) enableZC = false;
var clip = new ZeroClipboard();
clip.glue( $(".api_ctc_buttons") );
if(enableZC){
clip.on( 'complete', function ( client, args ) {
alert("Copied text to clipboard: " + args.text );
} );
}
</script>
from zeroclipboard.
@iam1980 - can you follow up with the Mozilla bugtracker with this data? If possible put together a self-contained, functional & simple test case for them to work with, showing the problem.
Mozilla assumes this issue only affects ZC 1.0.7. It will be useful for them to see it happen with the newer version of ZC.
https://bugzilla.mozilla.org/show_bug.cgi?id=829557
from zeroclipboard.
@pkbarbiedoll sure. (https://bugzilla.mozilla.org/show_bug.cgi?id=829557#c36)
from zeroclipboard.
It appears Mozilla fixed the bug in Firefox 22, scheduled for release in March 2013.
Status: NEW → RESOLVED
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
Flags: in-testsuite+
Last Resolved: 2013-03-04 14:17:58
from zeroclipboard.
Nice. We just need to remember to test it once released.
from zeroclipboard.
FYI, Mozilla is going to attempt to backport the fix into Firefox 20.
from zeroclipboard.
Update:
- Firefox 21: Fix was successfully applied
- Firefox 20: Fix did not apply cleanly (at least not yet)
from zeroclipboard.
From Mozilla:
Tested using the STR in comment 12.
The copied result is rendered HTML without any freeze/hang.
Verified fixed Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20130305
Firefox/22.0
Now we wait for the RC.
from zeroclipboard.
Now fixed in Firefox 20 as well, which should be released on 2013-04-01. Woohoo!
from zeroclipboard.
Confirming that the Mozilla patch corrects the problem with ZeroClipboard 1.0.7 freezing. Tested with FF20 and FF21 in XP and Win7.
Now we wait for the HTML rendering issue to be looked at in ZC 1.1.x. :-)
from zeroclipboard.
Related Issues (20)
- Copy a table using zeroclipboard
- ZeroClipboard never initialises HOT 1
- Why the button on github repo page doesn't need a flash object HOT 2
- Seeking new maintainers/collaborators HOT 8
- zeroclipboard alternative HOT 1
- it not work in mac chrome HOT 2
- how to use in vue2.0? HOT 1
- the content contains "<script" , the copy doesn't work
- Not working upon Recent upgrade of chrome in windows, but IE works HOT 7
- Problem with using this in something other than a button
- why the position absolute are not working. help HOT 1
- not working in chrome HOT 2
- Unable to keep format as it is while copying HOT 1
- How can get the selector to set to other method
- Xss problem HOT 6
- init zeroclipboard throw flash-disabled error HOT 1
- Encoding problems in IE11
- Copy the table and paste the data into MS-Excel
- Demo page not work but github copy clone url does? HOT 1
- `<button>` independent, support run as callback please!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zeroclipboard.