AJAX to a table row

Hello-

I’d like to throw a little AJAX into a table to allow the user to edit a
single row of data inline rather than moving to another page.

The row (which has N columns) would be swapped out for a row which has a
single column (colspan=“N”) and the form inputs would be in that row.

My question is, is this legal HTML? I can’t find anything that says
either way. Basically, I’m thinking the HTML would look like:

blah blah
blah blah
...

During the AJAX call, “item_44” would get replaced with something like:

...Edit Blah...

Is this ok?

Jake

Hi Jake,

Just add the id to the … so

Whatever Whatever

You should not use

's when you don’t need to. Always try to use a
already existing tag before resorting to a div.

Eric

Jake J. wrote:


Eric G.
ericgoodwin.com

Also, for the record, adding a div inside a tr directly is against XHTML
standard
(http://learningforlife.fsu.edu/webmaster/references/xhtml/tags/table/tr.cfm).

Thanks. This is what I was after. Though, for this particular case,
the ID’ed will work just fine.

Thanks!

Jake

Eric G. wrote:

Hi Jake,

Just add the id to the … so

Whatever Whatever

You should not use

's when you don’t need to. Always try to use a
already existing tag before resorting to a div.

Eric

Jake J. wrote:


Eric G.
ericgoodwin.com

Also, for the record, adding a div inside a tr directly is against XHTML
standard
(http://learningforlife.fsu.edu/webmaster/references/xhtml/tags/table/tr.cfm).