Multiple Cells in a Table Row
Hi,
I'm trying display a table with 1 row. The row contains 2 cells. I have modified slightly the example code provided in the documentation for 'AW.HTML.TABLE', however, I can't get both cells to display at once.
Am I misinterpreting something here..??
<script>
var table = new AW.HTML.TABLE;
var row = new AW.HTML.TR;
var cell1 = new AW.HTML.TD;
var cell2 = new AW.HTML.TD;
cell1.setContent("html", "abc");
cell2.setContent("html", "def");
row.setContent("cell", cell1);
row.setContent("cell", cell2);
table.setContent("row", row);
table.setAttribute("border", "1");
document.write(table);
</script>
I'm trying display a table with 1 row. The row contains 2 cells. I have modified slightly the example code provided in the documentation for 'AW.HTML.TABLE', however, I can't get both cells to display at once.
Am I misinterpreting something here..??
<script>
var table = new AW.HTML.TABLE;
var row = new AW.HTML.TR;
var cell1 = new AW.HTML.TD;
var cell2 = new AW.HTML.TD;
cell1.setContent("html", "abc");
cell2.setContent("html", "def");
row.setContent("cell", cell1);
row.setContent("cell", cell2);
table.setContent("row", row);
table.setAttribute("border", "1");
document.write(table);
</script>
Martin
March 30,