Good day, friends. I can't make zeroclipboard working with my page. In HTML page I have:
<script type="text/javascript" src="ZeroClipboard.js"></script> //Script was loaded successfully.
...
<button id="copy_clipboard">Test me</button>
<script>
ZeroClipboard.setMoviePath('http://olymp/ZeroClipboard.swf'); //Path correct. It's local php server
var clip = new ZeroClipboard.Client();
clip.setText('test');
clip.glue('copy_clipboard');
</script>
This return me an error: ZeroClipboard.setMoviePath is not a function
After deleting
ZeroClipboard.setMoviePath('http://olymp/ZeroClipboard.swf');
I got an error:
ZeroClipboard.Client is not a constructor