Originally Posted by glenngv
What element is totalsBlock? Since you are inserting table rows in it, totalsBlock should be <tbody> and not <table>.
And when you are looping through the fields to build the form data, you need also to escape the field name because you have special characters (e.g. update_totals[title]) in it.
Ok, I have done both these things and am still getting the same result. So far all of my testing has been done in Firefox; today I tried to use IE7 and found that the code to regenerate the form components doesn't work at all; it fails and generates the error "Unknown runtime error".