Insert Rows Above in Form
Hello all,
I'm trying to allow users to insert rows on a form in such away that the added row renders in the middle of the form. Probably having a check box on each row saying 'insert row above'.
The purpose is to emulate editing a table in a word processor basically. I understand I'd have to manage re-sequencing the data as the user changes records that appear in the 'middle' of the table.
I've seen D Kubicek's 'row mover' page and it's a good fallback, however I'd be interested as to whether what I want is really simple or will involve a lot of js and / or Ajax.
Cheers,
Toby
================================================
Eg
Before
---------
Sequence Data Chkbox ("insert above")
======================
ID1 Value1 []
ID2 Value2 []
ID3 Value3 [x]
After
-------
Sequence Data Chkbox
======================
ID1 Value1 []
ID2 Value2 []
(null) (null) []
ID3 Value3 []