javascript - DataTables in VisualForce Page, Setting swfPath as Static Resource -


i have been working datatables library in visualforce , have working except export features. followed sample initialization on datatables website, getting error zeroclipboard.js undefined in tabletools.js file. however, have checked , re-checked multiple times , zeroclipboard.js listed resource in chrome.

the thing doing differently, , not able determine in adapting function visualforce how call swf file. hosting file on local server , referencing explicitly in function. issue? error above not seem related, thing left think after extensive troubleshooting.

does know how can make swf file static resource in salesforce , call way function file on same server else?

below current function setting datatables (question in reference swfpath: call, how do static resource?)

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 ); 

       

you can uploading swf file(you can find in media/swf/copy_csv_xls_pdf ) static resource in salesforce , accssesing it

for example

 otable = $('#example').datatable(             {                 "idisplaylength": 20,                 "sdom": '<c><"h"t><"clear"><"h"l>t<"f"ip>',                 "otabletools": {                 "sswfpath": "{!$resource.swf_file}"                 },                 "ocolvis":                  {                     "activate": "mouseover"                 },                 "bautowidth": false,                 "bjqueryui": true,                  "spaginationtype": "full_numbers",                 "aasorting": [[ 2, "asc" ]] ,                 "blengthchange": false,                  "bfilter": true 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -