PDA

View Full Version : InnerHTML


Dr_s99
11-30-04, 08:06 PM
I know before i had a post like this... but i really need help

well i'm using InnerHTML to get "data" from an XML

in the main page i show them using <div id= "the node name"></div>
there are 4 div tags
they are placed inside a table.
each div tags are in a colume,
like this
EXample
<tr>
<td><div id= "the node name"></div></td>
<td><div id= "the node name"></div></td>
<td><div id= "the node name"></div></td>
<td><div id= "the node name"></div></td>
</td>

how could i using innerHTML make rows and columes..
since the XML ( is made up of questions, answer, and message and correct or not)
so that every question and the things that are related to that question are in a different row then the other questions...


----
and this is how the innerHTML looks like
answer.innerHTML =answer.innerHTML+'<br><b> <font color =green>Answer: </b></font>'+ nodes.item(x).childNodes(ans).text;