DataTables in VisualForce Page, Setting swfPath as Static Resource <p>I have been working with the DataTables library in VisualForce and have everything working except for the export features. I followed the sample initialization on the DataTables website, but am getting an error that ZeroClipboard.js is undefined in the TableTools.js file. However, I have checked and re-checked multiple times and the zeroclipboard.js is listed as a resource in the Chrome.</p> <p>The only thing I am doing differently, and was not able to determine in adapting the function to VisualForce was how to properly call the swf file. Currently I am hosting the file on a local server and referencing it explicitly in the function. Could this be my issue? The error above does not seem to be related, but it is the only thing left I think after extensive troubleshooting.</p> <p>Does anyone know how I can make the swf file a static resource in Salesforce and call it that way from the function so the file is on the same server as everything else?</p> <p>Below is my current function setting up DataTables (Question in reference to the swfPath: call, how do I do this with a static resource?)</p> <pre><code>var oTableTools = new TableTools( oTable, { "sSwfPath" : "www.MyWebsite.com/resources/copy_csv_xls_pdf.swf", "buttons": [ "copy", "csv", "xls", "pdf", { "type": "print", "buttonText": "Print me!" } ] }); $('#demo').before( oTableTools.dom.container ); </code></pre> <p> </p>