Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Editing rows in a table

Status
Not open for further replies.

emozley

Technical User
Jan 14, 2003
769
GB
I have an HTML table with three rows in...

Alex
Bill
Charles

I have designed an interface for editing. The idea is to click a name which turns into a form field within the table, pushing enter after typing will update the database and change the data from a form field back into text.

I have got a pretty good idea of what I need to do but one problem I think I will have is if someone clicks on Alex, then Bill there will be two form fields on screen which will look a bit untidy. What's the best way of preventing this?

Should I either:

a) Check that all rows are displaying normally and then turn just one div into a form (inefficient I think)

or

b) Somehow remember if a row has been clicked on and if another one is clicked on then return the previous one to its previous state? If so what's the best way of doing that?

Thanks very much!

Ed

 
You missed out an obvious option:

c) Allow multiple edits at the same time

one problem I think I will have

Is it really a problem to allow multiple edits? If so, why? If your back-end can't handle it, why not? If your users would be confused, educate them (although it's hardly confusing to have more than one field on a page at any one time).

Dan




Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Snippets & Info:
The Out Atheism Campaign
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top