title: Passing arguments to sAjaxSource in jQuery datatables
body: <p>I am working with CodeIgniter and I have the following problem.</p>
  
  <p>I have a controller function in <code>details.php</code> which takes an argument:</p>
  
  <pre><code>function details($id) {
      $this-&gt;datatables
           -&gt;select('product_id, original_amount, quantity')
           -&gt;from('orders');
  
      echo $this-&gt;datatables-&gt;generate();
  }  
  </code></pre>
  
  <p>Now I need to call this from views, i.e. I want DataTables to display it like so:</p>
  
  <pre><code>&lt;script&gt;
  $(document).ready(function() 
    $('#example').dataTable({
      ...
      'sAjaxSource' : 'admin/data/details',
      ...
    });
  &lt;/script&gt;
  </code></pre>
  
  <p>So, how do I pass arguments to the <code>sAjaxSource</code> key, namely the <code>$id</code> variable?</p>