Search code examples
javascriptjqueryzeroclipboard

ZeroCliboard not working on FF 17 upwards


I am using ZeroClipboard version 1.0.7 on my webpage. The current stage is that it works perfectly on Chrome, IE and Firefox up to version 16.2.

When i tried ZeroClipboard on Firefox 17 i noticed that the plugin was not working anymore.

I upgraded to ZeroClipboard to 1.1.7 but now my script does not seem to work at all. I get a TypeError: element is undefined on line 53 in file ZeroClipboard.js .

I could not figure out what i am not doing correctly and the element is never set.

Here is a part of my implementation

$(this).mouseover( function() {

        ZeroClipboard.setDefaults( { moviePath: '/script/ZeroClipboard.swf' } );
        clip = new ZeroClipboard();
        clip.setHandCursor( true ); 

    } );

Solution

  • Zero Clipboard isn't maintained anymore , why not use http://www.steamdev.com/zclip/ . Its built on zero clipboard and maintained well.