title: Creating a table with JSON
body: <p>I was wondering if someone could cast their eyes over this code and offer feedback as to whether i'm using the correct logic, it works and it's valid however I suspect there may be a ordering issue because the addScroller function isn't re-initialising correctly: </p>
  
  <pre><code>    function DeliveredReport(){
  
  var count=0;
  var content='';
  
  spinnerOn();
  $('#Results tbody').empty();
  $.getJSON("/central/atv/api/json_delivered_rpt.p?fromNoTime=" + $('#fromNoTime').val() + "&amp;toNoTime=" + $('#toNoTime').val(),
  function(data){
  
  $.each(data.results, function(i,result){
  content = '&lt;tr&gt;&lt;td&gt;' + result.c + '&lt;/td&gt;';
  content += '&lt;td&gt;' + result.v + '&lt;/td&gt;';
  content += '&lt;td&gt;' + result.t + '&lt;/td&gt;';
  content += '&lt;td&gt;' + result.s + '&lt;/td&gt;';
  content += '&lt;td&gt;' + result.d + '&lt;/td&gt;';
  content += '&lt;td&gt;&lt;a class="iconSprite" id="customer_icon_btn" title="View Customer" href="javascript:ShowCustomer(' + result.cust + ')"&gt;Cust&lt;/a&gt;' +
             '&lt;a class="iconSprite" id="deal_icon_btn" title="View Deal" href="javascript:ShowDeal(' + result.deal + ')"&gt;Deal&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;';
  count++;
  
  $('#Results tbody:last').append(content);
  });
  
  spinnerOff();
  if (count===0) {alert('No delivered vehicles\n' + $('#fromNoTime').val() + ' - ' + $('#toNoTime').val());}
  else {zebra(); AddScroller();}
  
  });
  
  }
  </code></pre>
  
  <p>Zebra is the typical striping effect and AddScroller is calling the tableScroll plugin. </p>
  
  <p>Any feedback would be greatly appreciated. </p>