title: jQuery ajax fill html table
body: <p>If I have a table:</p>
  
  <pre><code>&lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;Col1&lt;/tr&gt;
          &lt;tr&gt;Col2&lt;/tr&gt;
          &lt;tr&gt;Col3&lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
      &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>What is the fastest, most efficient way to fill the tbody with tr elements containing my data from a database using a Jquery Ajax. (unless you have a better way)</p>
  
  <p>Return html code from the webservice OR dynamically create the html code in Javascript?</p>
  
  <p>Also I have to support the user "drilling down; i.e. either clicking a > or double clicking the row to open a pane to show some more information. (including another table and some detail information returned by a separate webservice)</p>
  
  <p>All ideas welcome!</p>