Justin
Justin

Reputation: 800

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?

Upvotes: 1

Views: 1972

Answers (2)

BlackSan
BlackSan

Reputation: 58

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

Upvotes: 0

raspberryh
raspberryh

Reputation: 43

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.

Upvotes: 1

Related Questions