ajax - jQuery DataTables: Filter per column -


i have datatables table, getting it's data trough ajax source. i've got table , running, searching works.

now i've got request implement search fields every column. there seems datatables plugin column filtering, tried use.

this html:

<!doctype html> <html> <head>     <title>testpage</title>     <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>     <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.0/jquery-ui.min.js"></script>     <script type="text/javascript" src="http://www.company.com/content/dam/workflows/js/jquery.datatables.min.js"></script>     <script type="text/javascript" src="http://jquery-datatables-column-filter.googlecode.com/svn/trunk/media/js/jquery.datatables.columnfilter.js"></script>     <script type="text/javascript">     $(document).ready(function() {         $("#overview").datatable({             aocolumndefs:[{                 atargets: [0]             }],             bautowidth: false,             blengthchange: false,             idisplaylength: 10,             sajaxsource: "http://server/api.jsp?someparameters"         }).columnfilter();     })     </script> </head>  <body>  <table id="overview"> <tr>     <thead>         <th>#</th>         <th>betrieb</th>         <th>status</th>         <th>anlagenummer</th>         <th>bezeichnung</th>     </thead> </tr> </table>  </body> </html> 

as can see, attached columnfilter() method. doesn't throw error in console, table looks before (no additional input boxes search columns).

am doing wrong? possible due source beeing ajax?

i think need define footer section in html table. have @ this example

the table should like

<table>     <thead>         <tr>...</tr>     </thead>     <tfoot>         <tr>...</tr>     </tfoot> </table> 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -