rem: headRow += '<td class="section_field_grid_add" onClick="addGridRow(\'' + tableName + '\')">Add...</td>'; 
add: if (fieldNode.getAttribute ('append') != 'no') headRow += '<td class="section_field_grid_add" onClick="addGridRow(\'' + tableName + '\')">Add...</td>'; 
context: function prepareFieldHtml_grid(fieldNode, level, count, parent, namePrefix){	var fieldNodeId = fieldNode.getAttribute ('id');	var fieldType = fieldNode.getAttribute ('type');	if (__nodebug == false && __debug == true) {		__debug = confirm ('id = ' + fieldNodeId + ' (' + fieldType + ')\nnamePrefix = ' + namePrefix);	}	var rowCount = fieldNode.getAttribute('rows');	var fieldCount = fieldNode.childNodes.length;	var headRow = '';	var dataRowPrototype = '';	var parentPrefix = (namePrefix ? namePrefix + '.' : '') + fieldNode.getAttribute('id');	var tableName = 'table_' + parentPrefix;		if (!rowCount || rowCount == '')		rowCount = 1;	if (__nodebug == false) __debug = confirm ('prepareFieldHtml_grid...\nid = ' + fieldNodeId + ' (' + fieldType + ')\nnamePrefix = ' + namePrefix + '\nparentPrefix = ' + parentPrefix + '\ntableName = ' + tableName);		for (var i = 0; i < fieldCount; i++)	{		var childFieldDefn = fieldNode.childNodes[i];		headRow += '<td class="section_field_grid_head">'+childFieldDefn.getAttribute('caption')+'</td>';		dataRowPrototype += '<td class="section_field_grid_data">'+createFieldHtml(childFieldDefn, level + 1, count, parent, parentPrefix)+'</td>';	}	headRow += '<td class="section_field_grid_add" onClick="addGridRow(\'' + tableName + '\')">Add...</td>';	headRow = '<tr>' + headRow + '</tr>';	dataRowPrototype = '<tr>' + dataRowPrototype + '</tr>';	var html = '<table id="' + tableName + '" class="section_field_grid">'+headRow+dataRowPrototype;	for (var row = 1; row < rowCount; row ++) {		if (__nodebug == false) __debug = confirm ('adding row #' + rowCount);		var theDataRow = "";		for (var i = 0; i < fieldCount; i++)		{			var childFieldDefn = fieldNode.childNodes[i];			theDataRow = '<td class="section_field_grid_data">'+createFieldHtml(childFieldDefn, level + 1, count, parent, parentPrefix)+'</td>';		}				theDataRow = '<tr>' + theDataRow + '</tr>';		html += theDataRow;	}	html += '</table>';	return html;}
meta: 7578	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7578/15d75e474572ec97cc85017d0284da90cdc35ec9/dynamic-page.js/clean/HealthSuite/WebSite/lib/dynamic-page.js