So, I am embarking on some AJAX work, and I have a small dilemma that should be easily fixable.

When I get my data back, I need to add it to a table, or namely, make an HTML table.

Here's how I have it at the moment:

str += "<table style='border:1px solid white;' border='1' cellspacing='0' cellpadding='3'>";
        for (var i = 0; i < ResultsTable.Rows.length; ++i) {
            var row = ResultsTable.Rows[i];
            str += InsertAd(i);
            str += BuildResultItem(row);    
        str += "</table>";
It's fast, or at least, pretty fast. There's a slight delay when it parses the results into the string. Is there a way to dynamically add each row RIGHT when it's parsed? So imagine you had an infinite number of rows, I am talking of a way to just add row after row ad infinitum, but not freeze/delay the browser in the process like it does at the moment.