74
o += "<table cellpadding=3pt><tr>";
for (i = 0; i < colNames.length; ++i)
{
o += "<td>" + colNames[i] + "</td>";
}
o += "</tr>";
for (row = 0; row < nRows; ++row)
{
o += "<tr>";
for (i = 0; i < colNames.length; ++i)
{
o += "<td>" + r.getField(row, colNames[i]) + "</td>";
}
o += "</tr>";
}
o += "</table>";
// Write the table to the HTML stream
document.write(o);
}
<!--- Dump the recordset --->
dumpWddxRecordset(q);
</script>