I have a table with multiple columns, the last of which is “position”.
I need to allow a user to drag rows, up and down the table and drop them where they want them, ideally they should see a semi-transparent copy of the row they are dragging during such.
The row then gets put in new place and the old one removed.
I need to update a variable which will get sent to server so that the serverside PHP code can easily save the updated order. ( I can easily do this. )
If it helps, each TR has a unique ID which matches the coresponding serverside database record ( MySQL ).
If dragging the rows is too complicated, then button 2 buttons, 1 either side of “position” for up & down respectivly, which just swap the row with either above row or below row will suffice.
A solution to this would be very much appreciated.
Ideally the code needs to be cross-browser ( 1 of the site admins uses an iMac with IE5.1 )
I will much appreciate any/every response.
Cheers,
Hawk.