Click here to Skip to main content
15,894,337 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
my jquery code is

XML
<script type="text/javascript">
       $(document).ready(function () {
           $("#copybutton").zclip({
               path: "../Scripts/ZeroClipboard.swf",
               copy: function () { return currentSelectedRows.data.Key + ": " + App.txtSummary.getValue(); },
               beforeCopy: function () { },
               afterCopy: function () {
                   alert('Copy To Clipboard : \n' + App.txtSummary.getValue());
               }
           });
       });
   </script>



and HTML control is
XML
<Content>
                                  <a id="copybutton" href="#" class="btncpy">Copy To ClipBoard</a>
                             </Content

>

It is not working first time
Posted
Updated 27-Aug-15 23:04pm
v2
Comments
F-ES Sitecore 28-Aug-15 5:44am    
What do you mean "not working"? Does the zclip function get called? Does it "work" on a second click? What is zclip? Can you get the plug-ins documentation examples working? Check how your code differs from the documentation.
ZurdoDev 28-Aug-15 7:18am    
You may have to contact whoever made zclip.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900