Search code examples
jquerygoogle-chromezeroclipboardzclip

zclip not working locally on chrome


I have this jsfiddle. zclip appears to work in FireFox and Chrome. But once I put this code locally, it no longer works on Chrome. It will still work on FireFox; so I know its not a flash player setting as I have set the settings for my local ZeroClipboard.swf.

Any ideas?


Solution

  • I made it work. the only thing I did was instantiate it, something like this: for example I have a link like this

    <a href="#" class="song-widget">
    

    so for the javascript...

    $('body').on("click", ".share.to-click", function(){
     $('a.song-widget').zclip({
       path: "/assets/ZeroClipboard.swf",
       copy: "<iframe src='http://localhost:5000/songs/1/widget'style=' width: 470px; height: 87px;'></iframe>"
     });
    });
    

    and thats it