Hi
I want to Query a database using AJAx and display the results in the middle rows of an existing table. right now the server builds rows and return them to the main page, but I don't know how to insert them to the right spot.
basically, I look for a function he inserts a string before /after some row in the table .
in the pad I have:
<table>
<tr><td>Heade r</td></tr>
<tr><td>foote r</td></tr></table
I have a string : "<tr><td>Re sult 1</td></tr>" I want to insert between the Header and the footer using Javascript. How can I do it? [I get this string from the server].
Thanks
Yuval
I want to Query a database using AJAx and display the results in the middle rows of an existing table. right now the server builds rows and return them to the main page, but I don't know how to insert them to the right spot.
basically, I look for a function he inserts a string before /after some row in the table .
in the pad I have:
<table>
<tr><td>Heade r</td></tr>
<tr><td>foote r</td></tr></table
I have a string : "<tr><td>Re sult 1</td></tr>" I want to insert between the Header and the footer using Javascript. How can I do it? [I get this string from the server].
Thanks
Yuval
Comment