Hi, On Dec 27, 2:35 pm, Aaron J Spetner <[email protected]> wrote: > Is the `update()` method intended to work on <td> elements? Every time > I try I get an 'INVALID_STATE_ERR'. > > Thanks > AJS
Yes, Element#update works just fine on `td` elements. Example: http://jsbin.com/aqehax It even works when you use it to add/remove table cells, because Prototype does some under-the-covers stuff to make that work even on browsers which are a bit difficult about manipulating tables in that way. (But if you do things like replacing multiple table cells in a row with just one table cell without using `colspan`, results will still vary across browsers -- ex http://jsbin.com/aqehax/3 -- but that's no great surprise, and using colspan -- ex http://jsbin.com/aqehax/4 -- works.) HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
