-1

I've read about how to implement Undo in web applications. There are several drawbacks to this light-weight approach on the client-side.

Does anyone know how Google implements "Undo" in their apps, e.g. GMail? Is it a client-side implementation like Aza Raskin's solution? Is it some kind of "Delete" record in a DB that gets removed again? Or something entirely different?

awendt
  • 13,195
  • 5
  • 48
  • 66
  • Of course, it depends. Sometimes a client-side solution is enough, but most of the time it's server-side: a database entry is only marked as deleted, not physically removed. – Oleh Prypin Aug 14 '12 at 11:47
  • I know! That's why I wanted to know: How does Google do it in GMail? – awendt Aug 14 '12 at 12:48

2 Answers2

1

Blog below explain how it is done using python. Credit to Alexandre Bourget for putting it up

http://blog.abourget.net/2010/2/20/gmail-undo-cancel-feature-introducing-python-webundo/

krutin
  • 11
  • 1
0

They probably delay the actual sending of the email for a set amount of time where you have a chance to cancel it.

timc
  • 339
  • 4
  • 9