Pokémon Forever

Testing Comment Memory

Posted on 16 Apr 2005

I’m testing a Javascript which should accurately remember a comment, in case, for example, you write out a comment, but accidentally close the tab/window, so it’ll still be there.


I’m testing out a Javascript based on one I saw elsewhere. The script is designed to “remember” what you typed in the comment field, in case you leave and come back later without having posted it. I extended the script so that not only can it remember what you had in the comment field, but when you post it will “forgot” it (so it doesn’t keep appearing after you’re posted).

I’ve had people tell me tales of how they were typing up a long comment, but fate swooped in and crashed the browser, and they lost it all. Since this actively stores your text in a cookie in your browser as you type, even if the browser windows crashes, the comment should be remembered when you return.

Note: if the comment field says “undefined”, that’s a bug that I thought I fixed two different ways, but apparently it’s still there. =(

Comments

The comments section was eaten by a wayward Snorlax.