Ch 5 Edit Task

Subscribe to Ch 5 Edit Task 3 post(s), 3 voice(s)

 
Avatar Roupen 84 post(s)

Hi Eldon, need a bit of hand-holding on this one…

What I’m thinking on Edit Task is this…

  1. click on the text and it turns to an editable area in place – same as post title edits here. Alternatively, there is the Google docs way of poping an edit box (if you try to edit a document name for example).
  2. text is editable whether a task is in the schedule area or the sidebar. The first approach may not be a good option since space is limited – popping an edit box may be better. Alternatively, could make tasks editable only in the schedule area but that would be a bit odd.

Any sample code you can point to – in general, whats a good place to forage for sample code for stuff like this since a million other projects probably have already done this.

Has anyone else done this?

 
Avatar stranger 46 post(s)

hi roupen…. the prototype and scriptaculous are used for this purpose. in_place_editor is used… passing right parameters will produce edit box on the fly.
More to come from eldon

 
Avatar EldonAlameda Administrator 216 post(s)

IMHO – the best place to start is to create it as a separate page at first. So you would add a link of some sort to edit the task which takes you to a custom page focused on editing the task.

Once you’ve got the code working that way – it usually makes it easier to “extract” out the pieces that you’re interested in for making a more ajaxy approach.

As for possibilities – you could do in_place_edit, you could do some sort of pop-up window (perhaps using a lightbox style solution like this , you could even do a dialog box on the bottom of the screen like this forum software does. There are tons of approaches – each with their own pros / cons.