Question

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?

Was it helpful?

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

OTHER TIPS

From what I have read, this doesn't work locally because of some security reasons with Flash. It must be uploaded to a web server.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top