Where is my draft? I know it's here somewhere!
Posted on 08.10.2009 11:38 pm
Irony is such a lovely thing, but often misunderstood.
I was writing up a nice little blog post, it contained misc thoughts about a certain feature. Same thoughts as this blog post actually, but what happened is I accidentally closed the tab window, losing all my text in the process.
That entry was about auto-save of blog entires (so you won't lose your stuff).
So I started work on it immediately after it happened and I'm now about halfway through.
But I'm wondering what other features are handy that relate to this one.
- Blog entry drafts. So you'll be able to write stuff and publish later. This is actually something I'm going to do as well but wanted your thoughts on it.
- Timed submits. So you can write your blog post and tell the system to submit it later on. I'm probably not going to implement something like this, but it would probably be a nice addon feature.
What others can you think of? And do you have any good stories on data loss?
0 2 Like it or hate it? - Comment (2)
Alex Rozanski
0 0 / Posted on 09.10.2009 03:45 pm
I'll probably sound like a hypocrite, but you could add add a Javascript onUnload() or onBeforeUnload() handler which pops up an alert making sure you want to navigate from the page, which should save you if you accidentally close.Although I'm normally against this stuff, I think that in some cases it is okay (and since this is a personal project I guess it doesn't matter). Also it's not completely cross-browser compatible (I tried it with FF and Safari which worked but not Opera, and didn't try IE or Chrome) so I guess it depends on what browser you use.
Ólafur Waage
0 0 / Posted on 09.10.2009 05:06 pm
The thing was that I hadn't gotten round to working on anything relating to that, so while posting about something like this, I lost the data.Currently I have an AJAX implementation that saves whatever you've written to a draft. So if you exit the window, whatever you've done is saved. Similar to what gmail does.
onBeforeUnload() is probably something that will be added, but not as a main safety measure.
Process time: 0.009119 seconds