Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uncaught Error: ERROR: ... could not locate ZeroClipboard JS object

I am trying to use zclip.js.

if I use external file "http://www.steamdev.com/zclip/js/ZeroClipboard.swf", it's fine.

$("#face").zclip({
    path: "http://www.steamdev.com/zclip/js/ZeroClipboard.swf",
    copy: $("#face").text(),
    afterCopy:function(){}
});

if I use:

path: "ZeroClipboard.swf"

the code will throw an error:

Uncaught Error: ERROR: ZeroClipboard SWF could not locate ZeroClipboard JS object! Expected element ID: global-zeroclipboard-flash-bridge

Full version of the code can be found here: http://to-0.bl.ee/face/k2.html, starts from

$("#face"+i).zclip({

like image 208
GY_ Avatar asked Nov 11 '22 08:11

GY_


1 Answers

I had the same problem, you must download this version with all packages and your zClip function will work: Current Release jquery.zclip.1.1.1.zip ~8KB

like image 182
Antonio Morales Avatar answered Nov 14 '22 22:11

Antonio Morales