rem: availTable.appendChild(tr); 
add: availTable.appendChild(tbody); tbody.appendChild(tr); 
context:     function showAvailSummary(originalRequest) {        var availText = eval("(" + originalRequest.responseText + ")");        var availList = availText.availSummary;        var browseUrl = $('browseUrl').href;        var urlColon = ":";        var urlParams = "&view=list&ft=";        var token = availText.token;        var noAvailTable;        var availTable;        var availFunc;        if (token != null) {            availTable = document.getElementById('availTable' + token);            noAvailTable = 'noAvailTable' + token;            availFunc = 'requestAvailSummary' + token + '()';        } else {            availTable = document.getElementById('availTable');            noAvailTable = 'noAvailTable';            availFunc = 'requestAvailSummary()';        }                if (availList.length < 1) {            $(noAvailTable).style.display = '';        } else {            for (var i = availTable.childNodes.length - 1; i > 1; i--) {                availTable.removeChild(availTable.childNodes[i]);            }            for (var i = 0; i < availList.length; i++) {                var tr = document.createElement('tr');                var td1 = document.createElement('td');                var td2 = document.createElement('td');                var newanchor = document.createElement("a");                var up = availList[i].numUp;                var down = availList[i].numDown;                availTable.appendChild(tr);                tr.setAttribute((document.all ? 'className' : 'class'), "ListRow");                tr.appendChild(td1);                td1.setAttribute((document.all ? 'className' : 'class'), "resourceTypeName");                td1.appendChild(newanchor);                newanchor.appendChild(document.createTextNode(availList[i].resourceTypeName));                newanchor.setAttribute('href', (browseUrl + availList[i].appdefType + urlParams + availList[i].appdefType + urlColon + availList[i].appdefTypeId));                tr.appendChild(td2);                td2.setAttribute((document.all ? 'className' : 'class'), "availResourceStatus");                if (down > '0') {                    td2.innerHTML = '<span style=color:red;>' + down + '</span>' + " | " + up;                } else {                    td2.innerHTML = down + " | " + up;                }            }        }        rTimer = setTimeout(availFunc, 60000);    }
meta: 6359	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6359/c73368b4c0b44a080d168d46dd412b74dca5ead0/requests.js/clean/web/js/requests.js