Note that there are some explanatory texts on larger screens.

plurals
  1. PODataTables TableTools plugin - How to configure sSwfPath path in Codeigniter?
    primarykey
    data
    text
    <p>A re-post of my <a href="https://stackoverflow.com/questions/15802470/datatables-tabletools-not-able-to-find-the-path-for-sswfpath">previous question</a> as I am not getting any satisfactory answer</p> <p>The problem is as follows :</p> <p>I have given my code in JSBin <a href="http://live.datatables.net/aqowib/2" rel="nofollow noreferrer">http://live.datatables.net/aqowib/2</a> for which I am not able to link to the sSwfPath properly. I am using codeiginter in my application so I am trying to load the files as follows:</p> <pre><code>&lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"&gt;&lt;/script&gt; &lt;script src="http://&lt;?php base_url(); ?&gt;/assets/js/jquery.dataTables.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="http://&lt;?php base_url(); ?&gt;/js/jquery.dataTables.columnFilter.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="http://&lt;?php base_url(); ?&gt;/media/js/ZeroClipboard.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="http://&lt;?php base_url(); ?&gt;/media/js/TableTools.js" type="text/javascript"&gt;&lt;/script&gt; </code></pre> <p>And my script tag contains the following code:</p> <pre><code>$(document).ready(function(){ var oTable = $('#datatables').dataTable({ "sPaginationType":"full_numbers", "sDom": 'Tlfrtip', "oTableTools": { "sSwfPath": "&lt;?php base_url();?&gt;/media/swf/copy_cvs_xls_pdf.swf" }, "sScrollX": "100%", "bScrollCollapse": true, "bAutoWidth": true, "aaSorting":[[0, "asc"]], "bJQueryUI":true }).columnFilter({ aoColumns: [ null, null, { type: "select", values: [ 'male', 'female'] }, null, null, null, null, { type: "select", values: [ '1', '2', '3', '4', '5', '6', '7','8','9','10'] }, { type: "select", values: [ 'A', 'B', 'C'] }, null, { type: "select", values: ['P', 'A'] }, null, null, null ] }); }); </code></pre> <p>Everytime I am getting the 404 error saying that Unable to load SWF file - please check the SWF path</p> <p>Please help me where am I wrong ? Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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