I have a need to be able to dynamically add rows to a table with a javascript function.
I currently have a function that reads the contents of a table contained in a div, locates the </table> marker, then adds the new row before it. Finally, it writes the new table back to the div.
The problem with this is that it basically forces the table to refresh every time it's rewritten. We use some animated gif's and every time it refreshes, the gif is started over. If multiple lines are added in succession, the gif doesn't get a chance to continue.
Is there a way to do this by, say, placing a div in the middle of a table and doing a outerHTML change that would include the new row and a new <div> tag?
Thanks in advance.
-------------------------------------------------------------------------
Charlie Silverman
Sr. Systems Administrator
Globalstar, LLC
-------------------------------------------------------------------------
We now return you to your regularly scheduled reality.
I currently have a function that reads the contents of a table contained in a div, locates the </table> marker, then adds the new row before it. Finally, it writes the new table back to the div.
The problem with this is that it basically forces the table to refresh every time it's rewritten. We use some animated gif's and every time it refreshes, the gif is started over. If multiple lines are added in succession, the gif doesn't get a chance to continue.
Is there a way to do this by, say, placing a div in the middle of a table and doing a outerHTML change that would include the new row and a new <div> tag?
Thanks in advance.
-------------------------------------------------------------------------
Charlie Silverman
Sr. Systems Administrator
Globalstar, LLC
-------------------------------------------------------------------------
We now return you to your regularly scheduled reality.