...

View Full Version : Dynamic Table (add, remove rows) that works across modern browsers



quadrant6
01-26-2006, 09:54 PM
An illustration:

http://digitalfusion.co.nz/table-example.gif

This is an example of what I currently have. There is also a button which adds more rows. It wasn't too hard to get it working using CSS and innerHTML:



<div id="main container">
<div id="row-1">
<input.....
</div>
<div id="row-2">
<input.....
</div>
etc



However, due to mass css headaches with the layout, I' like to see if it can be done it tables instead and using the DOM methods (nodes, createElement etc)

so far, the examples I've seen either don't allow the same functionality or don't work across IE5+(win), and modern versions of FFox, Safari and Netscape (MAC + WIN)

Does anyone know of a good class/example/tutorial?

glenngv
01-31-2006, 09:20 AM
http://www.quirksmode.org/dom/innerhtml.html



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum