Hi,
> As Walter sais, you're going to insert a tr inside the tr. Besides,
> imho, the "prototype way" should be:
That works, but if you're building any significant number of rows with
it, you'll soon run into performance problems related to the DOM
methods used under the covers. Somewhat surprisingly, building up a
string and then inserting that (which ultimately ends up setting
`innerHTML`) is much, much faster than building up Element objects
using the DOM API. This isn't because of Prototype, but because of
going through the DOM API layer -- details here[1].
[1]
http://groups.google.com/group/prototype-scriptaculous/msg/ff8665e1f245c65e
HTH,
--
T.J. Crowder
Independent Software Consultant
tj / crowder software / com
www.crowdersoftware.com