I'm trying to do like this
1. I have a div msgDiv tag in which i have a table msgTab, that should display list of messages..currently table is empty
2. When i'll get a responseXML ,then the data in that response should be displayed in the table as links, which ,on onclick method should display method in textarea msgText.Something similar to outlook or latest yahoo mail.
so my problem is how to create table of links inside div tag at runtime when xml response is received. The data in <td> needs to be filled with values in xml response for n no. of lines
You'll need to traverse the XML to get the data, then create DOM elements to represent the corresponding table.
Sounds like a nightmare to me. Any reason you can't pre-format the table using JSP on the server to create an HTML fragment that's returned in responseText that you can simply add to the DOM? Much simpler.