TroyMcClure
Technical User
I have an html table in an IFrame. The table is filled with data fetched from a sql-server database. I want to insert a row in between two existing rows, say, in the middle of the table. The row is hardcoded, so I don't want to refresh the page which would require a trip to the server. I just want to copy the current table, find the row where I want to stick the new one, put the row in, and redisplay the table quickly.
I've seen methods like insertNode, appendChild, but I'm not sure how to use them. Maybe I could just get the outerHTML of the table and put in a string, find the row using string functions, then break apart the string, stick the row in, and put it together that way. The main problem is the redisplay--how is that done?
--T
I've seen methods like insertNode, appendChild, but I'm not sure how to use them. Maybe I could just get the outerHTML of the table and put in a string, find the row using string functions, then break apart the string, stick the row in, and put it together that way. The main problem is the redisplay--how is that done?
--T