Tab control, indexing, editing without saving

Hello,

I’m trying to write a flexible address book extension. Each person has
many locations (much as each page has multiple parts) and I want to be
able to edit, add, remove locations without writing to the database.

I noticed that admin/page/edit uses a tabcontrol to give a name and
index to each page part - is there any way of doing this without using
tabcontrol?


Mark A. Yoon
Senior Web Applications/Software Engineer, Northwestern Radiology
[email protected]

Mark A. Yoon wrote:

I’m trying to write a flexible address book extension. Each person has
many locations (much as each page has multiple parts) and I want to be
able to edit, add, remove locations without writing to the database.

I noticed that admin/page/edit uses a tabcontrol to give a name and
index to each page part - is there any way of doing this without using
tabcontrol?

It’s done by using javascript to insert fields into the page form. The
page edit screen was a pretty hacked up job. There is not anything in
Rails that makes this sort of thing very easy. I’d suggest that you
study the source…


John L.
http://wiseheartdesign.com