In my RoR project I'm trying to use plugin for dataTable - columnFilter (http://jquery-datatables-column-filter.googlecode.com/svn/trunk/index.html).
It placed in : app/assets/javascripts/jquery.dataTables.columnFilter.js
(as all js-files)
I trying to call it from my view:
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
var oTable = $('#t1').dataTable({
"oLanguage": {
"sSearch": "Search:"
}
}).columnFilter({
sPlaceHolder: "head:before",
aoColumns: [ { type: "select"},
{ type: "select", values: [ 'First', 'Second']},
null,
null,
null
]
});
});
But it does not work. And I can't see any errors. But if I'll copy the content of dataTables.columnFilter.js
to my view (inside script tag...) it works perfectly...
How can I modify my code in order to stay filtering in external file?
jquery.dataTables.columnFilter.js
anddataTables.columnFilter.js
loaded? – Mindbreaker