zclip

Can't get ZClip to work

喜欢而已 提交于 2020-01-03 08:27:15
问题 I know it works even on this site but only when I trigger it via the h1 element, and I need to trigger it via an image (representing copy) but when I try it simply won't work. Here's my Javascript: $('#copyTxt').click(function(){ alert($('#Txt2Copy').text()); $(this).zclip({ path: '/scripts/js/ZeroClipboard.swf', copy: $('#Txt2Copy').text(), afterCopy: function(){ alert($('#Txt2Copy').text() + " was copied to clipboard"); } }); }); The alert was just for me to make sure it reaches and it does

WordPress jQuery Uncaught TypeError: Property '$' of object [object Object] is not a function

给你一囗甜甜゛ 提交于 2019-12-22 05:36:19
问题 I'm converting my html files to a WordPress theme and I'm using the plugin ZClip for copy text to clipboard. The ZClip plugin works fine in my html demo, but when converting to WordPress I got this weird syntax error "Uncaught TypeError: Property '$' of object [object Object] is not a function" in line 288 in the zclip.js file which is $(this.domElement).data('zclipId', 'zclip-' + this.movieId); I think it is something with the variable $ not sure. I read something about the jQuery might get

zClip - ZeroClipboard.swf deleted - Need new file

让人想犯罪 __ 提交于 2019-12-22 05:34:08
问题 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 ZeroClipboard.swf have deleted the file or for some reason made inaccessible. I have an other version(?) of the ZeroClipboard.swf on my computer from another script and I tried replacing the deleted link with a new link of the other version(?) I found on my computer. But it doesn't work, the flash

Symfony2 and zclip: apostrophe turn into & # 0 3 9 ;

只谈情不闲聊 提交于 2019-12-13 18:25:13
问题 I'm using jquery.zclip and Symfony2 framework to copy text to the client's clipboard. It works fine but for the fact that the apostrophe's transform into & # 0 3 9 ; (without the spaces) The problem apparently comes from Twig templating engine that transforms my apostrophes into their html entities. I would like to find a solution to prevent Twig doing this. Or maybe turn them back to apostrophes before calling zclip? How would you do that? Here is my jquery/twig code: <script> $(document)

zClip don't work - multiple copy to clipboard JS

六眼飞鱼酱① 提交于 2019-12-12 04:46:28
问题 I try to make a copy to clipboard button but I don't know why I can't make it. I load my page with ajax so I call a function to add the zclip to my button when I mouseOver the button. But when I click on it, nothing is happening. Here are my codes: JS : <script type="text/javascript" src="<?php echo JS_DIR?>zclip.min.js"></script> <script type="text/javascript"> function mouseOver(){ $('.copyMails').each(function (k,n) { console.log("test"); var copyMails = $(this); $(this).zclip({ path: '<

Zclip working on jsfiddle but not working locally?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 01:43:39
问题 Its strange :: Jsfiddle : http://jsfiddle.net/sxeCM/4/ [ Working ] Locally having the same code : <html> <head> </head> <body> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> <script src="http://www.steamdev.com/zclip/js/jquery.zclip.min.js"></script> <script> $(document).ready(function() { $('a#copy').zclip({ path:'http://www.steamdev.com/zclip/js/ZeroClipboard.swf', copy:$('div#description').text() }); }); </script> <a id='copy' href="#">Copy</a> <div

zclip not work in jquery ui inactive tab

感情迁移 提交于 2019-12-10 19:02:06
问题 I am using zclip in my asp.net webpage on jQuery UI dialog in jQuery UI tab. It works great in first tab which is active but it doesn't work when I add it to second tab and click second tab and clip copy button. my markup is below: <input type="text" id="txtCallStatus" class="disabled" readonly="readonly" value="NOT SET" /> <a href="#" id="copy-dynamic" onclick="return false;">Copy status</a> Js code is below: $.ajax({ type: "POST", dataType: "json", url: "/recording/verifyUser", data: { ID:

ZClip SWF does not align with button position if button position changes

强颜欢笑 提交于 2019-12-10 15:22:18
问题 I am currently using the zclip/jquery code to allow copying to the clipboard. It is currently attached to a span button. It seems to use a swf file over the button to provide the flash based copy to clipboard feature. The problem that I have is that when I dynamically add new elements to the page, the button position moves down but the SWF position stays the same. Is there anything I can do to have the zclip "follow" the button? Zclip snippet below: $("#copyToClip").zclip({ path:'include

zclip not working within bootstrap modal

你。 提交于 2019-12-07 12:32:12
问题 I'm using the clean example code provided by zclip page: $('a#copy-dynamic').zclip({ path:'js/ZeroClipboard.swf', copy:function(){return $('input#dynamic').val();} }); and this is the HTML: <a href="#" id="copy-dynamic" class="">Click here to copy the value of this input:</a> <input type="text" id="dynamic" value="Insert any text here." onfocus="if(this.value=='Insert any text here.'){this.value=''}" onblur="if(this.value==''){this.value='Insert any text here.'}"> It works fine if the HTML is

zClip - ZeroClipboard.swf deleted - Need new file

五迷三道 提交于 2019-12-05 07:44:46
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 ZeroClipboard.swf have deleted the file or for some reason made inaccessible. I have an other version(?) of the ZeroClipboard.swf on my computer from another script and I tried replacing the deleted link with a new link of the other version(?) I found on my computer. But it doesn't work, the flash movie loads but I can't click my button and copy the content. When I'm using the old link that doesn't