rendered paste body<html>
<head>
<script>
function addItem( data )
{
var TR = document.getElementById( 'table' ).insertRow( -1 );
TR.id = 'item_' + data['index'];
var Cell = TR.insertCell( -1 );
Cell.innerHTML = data['index'];
var Cell = TR.insertCell( -1 );
Cell.innerHTML = data['name'];
var Cell = TR.insertCell( -1 );
Cell.innerHTML = data['count'];
}
function fillItems()
{
var data = { 'index': '454000', 'name': 'Пазл', 'count': 2 };
addItem( data );
var data = { 'index': '800000', 'name': 'Булка', 'count': 5 };
addItem( data );
}
</script>
</head>
<body onLoad="fillItems();">
<table border="1" id="table">
<tr>
<th>Индекс</th>
<th>Наименование</th>
<th>Количество</th>
</tr>
</table>
</body>
</html>