News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Long-standing, Simple Problem Needs Genius Solution

Started by Brian Lacy, December 05, 2003, 10:46:23 AM

Previous topic - Next topic

Brian Lacy

Okay, surely I'm not the only one this happens to.  Every so often, I'll be mucking around on the web typing a post just like this one (doesn't matter what site or software I'm using) and I'll go to hit the backspace key. Just then I realize that, oops, I clicked somewhere and the focus has left the textbox I'm typing in -- so the backspace key takes me BACK TO THE PREVIOUS PAGE -- and I lose EVERYTHING I just typed. I know there are ways to get around this, like increasing the size of your internet cache and so on, but I don't like doing that. In the case of an e-mail message, I could save a draft, but I don't always remember to do that any more than I remember to NOT hit the backspace key when the focus is off the box.

I am really sick of this problem. I'm sick of the fact that it exists at all. I've been dealing with it for longer than I care to think about.

So my question is, has anyone yet, or can someone, come up with a way to make sure that the user doesn't lose what he or she has typed, whether due to a page reload, stupid backspace-back-a-page, lost internet connection, or whatever?

I'm thinking maybe the input could be dynamically cached somewhere on the server, or something like that, so when the user reloads the page the stuff is still there. But whatever the solution, there's GOT to be something better than this!

Tony Reid

Pressing CTRL+Z sometimes gets it back if you havent pressed anything else
Tony Reid

Brian Lacy

Heh, thats the first thing I instinctively try everytime. Never seems to work.

I think what I'm really looking for is a server-side or site-specific solution, so that other users on my site don't have to worry about it either. Doesn't have to be PHP.. could be JavaScript. Could be Java or even Flash for all I care, so long as it fixes the problem.

Anguz

#3
javascript is client-side and to make it server side, you'd have to send the information as you type it...

maybe there's a hack to disable the backspace key to work as the previous-page key and just work as a normal backspace key

I remember that in Mac there was an extension that let you save in a cache everything you typed, so even if you unplugged the computer, you'd find what you were writting saved... I don't know if there's such a thing in Win

of course, the best solution, is to teach yourself to click in the textarea at the end of where you want to delete, before using the backspace key

maybe a javascript script could be written to do this, save what you're typing in a txt file as you type it... I don't know much about js, so it may be a silly idea...

you could also just write your stuff in notepad and when done, just copy-paste it in the form and submit
Cristián Lávaque http://cristianlavaque.com

[Unknown]

#4
You can capture the backspace (8) key and return false with javascript, yeah... in fact, you could put that in your user js for Mozilla Firebird ;).

-[Unknown]

writeto

Unknown your reply doesn't make sense to me. It is that stupid smiley... what are you trying to say?

pulpitfire

well, if nothing else, you could use a keylogger :).  I use "The Perfect Keylogger", which records only keystrokes, so it doesn't really slow my system down. 

Parham

When I finish typing whatever, I always copy it all... then go back and fix errors, then copy it again, then submit (just in case the server had crashed while I was typing)... freak eh?

Anguz

Quote from: Parham on December 06, 2003, 12:11:45 PM
When I finish typing whatever, I always copy it all... then go back and fix errors, then copy it again, then submit (just in case the server had crashed while I was typing)... freak eh?

I do exactly the same  :D
Cristián Lávaque http://cristianlavaque.com

[Unknown]


Cloudbringer

I do the copy thing most of the time, too. Our server was crashing alot for a while so we found it the best way to keep from tearing our hair out when we'd typed a long post!

Big P

Or enable caching of site, then if you went back by accident simply press ALT + -> (Right Arrow) and bobs your unclue. The page is still in memory. Works nicely for me.
PHPNews has been released! Download it now!

Read My Blog!

Advertisement: