Note that there are some explanatory texts on larger screens.

plurals
  1. POZeroClipboard just isn't working
    text
    copied!<p>Originally, this post was regarding my attempts to inject ZeroClipboard into web pages by and for use by my Chrome extension, but I've dumbed the scenario down and down and down in a seemingly futile attempt to identify the issue and I <strong>still</strong> can't get it to work.</p> <p>I'm even having difficulty getting <a href="https://github.com/jonrohan/ZeroClipboard/blob/master/docs/instructions.md#minimal-example">the actual, documented "Minimal Example</a>" on ZeroClipboard's own GitHub to work (admittedly, I've modded the source to actually be HTML5-valid, but the exact original didn't work either). Even <code>test.html</code>, which is included in the <code>tar.gz</code> archive, doesn't work!</p> <p><strong>"Minimal Example": Code</strong></p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;title&gt;&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;input type="button" id="d_clip_button" data-clipboard-text="Copy Me!" value="Copy To Clipboard" /&gt; &lt;script src="ZeroClipboard.js"&gt;&lt;/script&gt; &lt;script&gt; var clip = new ZeroClipboard( document.getElementById('d_clip_button') ); &lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p><strong>"Minimal Example": Console Output</strong></p> <pre><code>Uncaught TypeError: object is not a function index.html:11 </code></pre> <p><strong>Info</strong></p> <ul> <li>The entire contents of the <a href="http://code.google.com/p/zeroclipboard/downloads/detail?name=zeroclipboard-1.0.7.tar.gz&amp;can=2&amp;q="><code>zeroclipboard-1.0.7.tar.gz</code> archive</a> are in the same directory as <code>index.html</code>.</li> <li>The <code>ZeroClipboard.js</code> file isn't corrupted / incomplete and is being loaded correctly.</li> <li>I'm using Chrome v24.0.1312.52</li> </ul> <p>&nbsp;</p> <p>Either I'm missing something really, really obvious here or ZeroClipboard's documentation / functionality is abysmal.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload