function my_onbytarget(data) {
var targetDiv = document.getElementById("bytarget");
- var table = '<thead><tr><td>Target ID</td><td>Hits</td><td>Diags</td>'
+ var table = '<table><thead><tr><td>Target ID</td><td>Hits</td><td>Diags</td>'
+'<td>Records</td><td>State</td></tr></thead><tbody>';
for (var i = 0; i < data.length; i++ ) {
"</td><td>" + data[i].state + "</td></tr>";
}
- table += '</tbody>';
+ table += '</tbody></table>';
targetDiv.innerHTML = table;
}
</div>
<div id="targetview" style="display: none">
- <table id="bytarget">
- <thead><tr><td>No information available yet.</td></tr></thead>
- </table>
+ <div id="bytarget">
+ No information available yet.
+ </div>
<hr/>
</div>