View Single Post
Old Jun 11th, 2005, 6:52 AM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
If you mean you have the strings and integers in JavaScript variables, you can use the innerHTML property. For example:
...
<script type="text/javascript">
<!--
var myString = "foo";
var myInt = 42;

function fillTable ()
{
    document.getElementById("cell1").innerHTML = myString;
    document.getElementById("cell2").innerHTML = myInt;
}
// -->
</script>
</head>

<body onload="fillTable()">
<table>
    <tr>
        <td id="cell1"></td>
        <td id="cell2"></td>
    </tr>
</table>
...
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote