<!DOCTYPE html>
<html>
  <head>
    <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
    <link href="https://nightly.datatables.net/css/jquery.dataTables.css" rel="stylesheet" type="text/css" />
    <script src="https://nightly.datatables.net/js/jquery.dataTables.js"></script>
<link href="https://nightly.datatables.net/select/css/select.dataTables.css?_=83ccd9fe32dc99a890e17a9f1bbde5a4.css" rel="stylesheet" type="text/css" />
<script src="https://nightly.datatables.net/select/js/dataTables.select.js?_=83ccd9fe32dc99a890e17a9f1bbde5a4"></script>
<link href="https://nightly.datatables.net/searchpanes/css/searchPanes.dataTables.css?_=5c6e38dbaaf467e0d790080ff9947c2c.css" rel="stylesheet" type="text/css" />
<script src="https://nightly.datatables.net/searchpanes/js/dataTables.searchPanes.js?_=5c6e38dbaaf467e0d790080ff9947c2c"></script>
    <meta charset=utf-8 />
    <title>DataTables - JS Bin</title>
  </head>
  <button id="reload">Reload</button>
    <body>
        <div class="container">
            <table id="example" class="display" width="100%">
                <thead>
                    <tr>
                        <th>Name</th>
                        <th>Position</th>
                        <th>Office</th>
                        <th>Extn</th>
                        <th>Start date</th>
                        <th>Salary</th>
                    </tr>
                </thead>
                <tfoot>
                    <tr>
                        <th>Name</th>
                        <th>Position</th>
                        <th>Office</th>
                        <th>Extn</th>
                        <th>Start date</th>
                        <th>Salary</th>
                    </tr>
                </tfoot>
            </table>
        </div>
    </body>
  
  
</html>
 
body {
  font: 90%/1.45em "Helvetica Neue", HelveticaNeue, Verdana, Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #fff;
}
 
$(document).ready(function() {
  var table = $('#example').DataTable({
    ajax: "/ajax/objects.txt",
    columns: [
      { "data": "name" },
      { "data": "position" },
      { "data": "office" },
      { "data": "extn" },
      { "data": "start_date" },
      { "data": "salary" }
    ],
    searchPanes:{
      dtOpts:{
        initComplete: function() {
          $('.dtsp-panesContainer table').on('click', 'tr', function() {
            console.log('show processing icon');
          });
        }
      }
    },
    dom: 'Plfrtip'
  }).
  on('draw', function() {
    console.log('clear processing icon if present');
  });
  
  $('#reload').on('click', function() {
    table.ajax.reload();
  })
  
  
});
1 error
Line 29: Missing semicolon.
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers