context:     function showMetricsResponse(originalRequest) {        var metricText = eval("(" + originalRequest.responseText + ")");        var metricValues = metricText.metricValues;        var resourceNameHeader = metricValues.resourceTypeName;        var resourceLoadTypeHeader = metricValues.metricName;        var urlColon = ":"        var resUrl = $('viewResUrl').href;        var metricTable;        var token = metricText.token;        if (token != null) {            metricTable = document.getElementById('metricTable' + token);        } else {            metricTable = document.getElementById('metricTable');        }        if (metricValues && metricValues != 0) {            for (var i = metricTable.childNodes.length - 1; i > 1; i--) {                metricTable.removeChild(metricTable.childNodes[i]);            }            for (i = 0; i < metricValues.values.length; i++) {                //alert(metricValues.values.length);                var newanchor = document.createElement("a");                var tr = document.createElement('tr');                var td1 = document.createElement('td');                var td2 = document.createElement('td');                var oTextNode = $('resourceTypeName').childNodes[0];                var lTextNode = $('resourceMetric').childNodes[0];                var oReplaceNode = oTextNode.replaceData(0, 27, resourceNameHeader);                var lReplaceNode = lTextNode.replaceData(0, 35, resourceLoadTypeHeader);                metricTable.appendChild(tr);                tr.setAttribute((document.all ? 'className' : 'class'), "ListRow");                if (metricValues.resourceName && metricValues.metricName) {                    oReplaceNode;                    lReplaceNode;                }                tr.appendChild(td1);                td1.setAttribute((document.all ? 'className' : 'class'), "resource");                if (metricValues.values[i].resourceName) {                    td1.appendChild(newanchor);                    newanchor.appendChild(document.createTextNode(metricValues.values[i].resourceName));                    newanchor.setAttribute('href', (resUrl + metricValues.values[i].resourceTypeId + urlColon + metricValues.values[i].resourceId));                }                tr.appendChild(td2);                td2.setAttribute((document.all ? 'className' : 'class'), "metricName");                td2.appendChild(document.createTextNode(metricValues.values[i].value));            }        } else {            $('noMetricValues').style.display = '';        }        rTimer = setTimeout(requestMetricsResponse, 60000);        //Refresh in 60 seconds    }
meta: 6359	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6359/c23f4f866766ffc65bd756587fd2f6632593d37d/requests.js/clean/web/js/requests.js