Sat Sep 11 2010 7:34:03 am EDT EDT from dothebart @ Uncensored Subject: Edit drafts, was Re: others messages
Fr Sep 10 2010 11:28:58 EDT von samjam @ Uncensored Betreff: Edit drafts, was Re: others messages
Fri Sep 10 2010 11:15:23 am EDT EDT from dothebart @ Uncensored Subject: Edit drafts, was Re: others messagesSam, have a look (from this message editing thing i'm just using):
<input type="hidden" name="force_room" value="Citadel Development">
its just posted to the server. If you add an attachment, the message isn't reloaded from the server, but you'll rather get the stuff you just posted next to the upload back into your edit window.
Once you press 'send' it will go to that room, and post the message from there.
(ok, we have one cavehat here: the post button is labeled differently depending on the view of the room, which probably won't work out in some cases, but I realy think we can live with that)
if, instead of THISROOM:NAME (is it? didn't look..) you offer a way to go to CITEROOM instead aren't we just done with it?
please correct me if i'm wrong.
You don't cover all the cases. The case where the use adds an attachment isn't the same as the user pressing refresh to re-load the page (which is likely on a poor network - GPRS or 3G).
But also we need to goto the room before we show the edit page so that the To, Cc are (or are not, for room posts) properly shown (it's not just the post button).
in that case he's still in the drafts room, and just reloads what got him to the edit window; so loading the initial edit screen again isn't a problem.
However, perhaps the message-to-be-edited body can be preserved in the same way that attachments are preserved.
this is not neccesary, as when pressing upload, you also post the current state of your message, which then in term is displayed to you in the previous state again.
So when the edit window is bought up it looks at the id of the message to be edited and checks to see if the message is already saved in the session. If so, it probably has already done GOTO the right room (but it can do it anyway). If not, it will load the message, save it in the session, and then goto the right room.
If the user clicks refresh (having already done goto the right room) the original message will fail to load again but has already been saved in the session (like an attachment) and so can still be used.
Sam
the goto just happenes if the user presses the final submit button, so unless he does that, he's still in the drafts room...
hm...
though it would be nice to have the room banner of your target room, right? and... maybe a dropdown list of your drafts to choose? which wouldn't work the way either of us stated above...
Not just the banner, but a mail message needs To and CC, but a normal room message does not. Then think draft calendar items. It would be better to go back to the room you were originally composing in while you continue composing.