context: function AssetManager_renderAssets() {	var gridStr = '<table border="0" cellspacing="0" id="am_grid" class="am-grid"><tbody id="am_grid_body"><tr id="am_grid.headers" class="am-grid-headers">';	var eventStr='';	var id = "";			for (i=0;i<this.columnHeadings.length;i++) {		id = 'am_grid.headers.' + i;				gridStr+= '<td id="' + id + '" class="am-grid-header-' + i + '">' + this.columnHeadings[i] + '</td>';			eventStr += 'document.getElementById("' + id + '").onclick=AssetManager_getManager().eventManager.gridHeaderClick;';				}	gridStr+= '</tr>';//['Rank','Title','Type','Last Updated','Size'];	for (i=0;i<this.assetArrayData.length;i++) {		id = 'am_grid.row.'+ i;		gridStr += '<tr id="'+ id + '" class="am-grid-row">';				/* rank, title, type, lastUpdate, size, url, assetId */								asset = new Asset();				asset.rank = this.assetArrayData[i][0];		asset.title = this.assetArrayData[i][1];		asset.type = this.assetArrayData[i][2];		asset.lastUpdate = this.assetArrayData[i][3];		asset.size = this.assetArrayData[i][4];		asset.url = this.assetArrayData[i][5];		asset.assetId = this.assetArrayData[i][6];		asset.icon = this.assetArrayData[i][7];		this.assets[i]=asset;								//add the row events//		eventStr += 'document.getElementById("' + id + '").onclick=Grid_rowClicked;';	//		eventStr += 'document.getElementById("' + id + '").onmouseover=Grid_rowMouseOver;';	//		eventStr += 'document.getElementById("' + id + '").onmouseout=Grid_rowMouseOut;';			eventStr += 'document.getElementById("' + id + '").ondblclick=AssetManager_getManager().eventManager.assetDoubleClick;';			eventStr += 'document.getElementById("' + id + '").onmousedown=AssetManager_getManager().eventManager.assetMouseDown;';			eventStr += 'document.getElementById("' + id + '").oncontextmenu=AssetManager_getManager().eventManager.assetRightClick;';			eventStr += 'document.getElementById("' + id + '").asset = AssetManager_getManager().assets[' + i + '];';		eventStr += 'AssetManager_getManager().assets[' + i + '].div = document.getElementById("' + id + '");';											for (k=0;k<this.columnHeadings.length;k++) {			id = 'am_grid.row' + '.' + i + '.col.' + k;			gridStr+= '<td id="' + id  + '" class="am-grid-col-' + k +'">';						if (k == 1) {				gridStr +='<img src="' + asset.icon + '" border="0"/>';							}			gridStr+=this.assetArrayData[i][k] + '</td>';	//			eventStr += 'document.getElementById("' + id + '").asset = AssetManager_getManager().assets[' + i + '];';		}	}		gridStr+='</tr>';	gridStr += '</tbody></table>';		document.getElementById("workspace").innerHTML=gridStr;	eval(eventStr);		this.buildCrumbTrail();			}
meta: 5314	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5314/a287beda581ad770ba404ab9ce82a83f514aaf40/AssetManager.js/buggy/www/extras/assetManager/AssetManager.js