Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Prompt before closing window when you've entered a reply

  • 09-07-2010 11:17am
    #1
    Registered Users, Registered Users 2 Posts: 68,190 ✭✭✭✭


    I'm sure this happens to everyone from time to time. You enter text in the quick reply box or the normal post box, you get distracted or you go off to research something. Then you forget about the post, accidentally close the window and woe, your post is gone.

    Firefox has a handy, "Reopen last closed tab" facility (Ctrl+Shift+T) which will usually recover your text, but only if you catch it in time. If you accidentally close five windows at once, it's gone.

    There is a Javascript function - window.onbeforeunload - which allows you to provide a message to the user before the window unloads the current document - either because it's closing or because you've clicked a link. This message box provides "OK" and "Cancel" buttons which allow the user to abort the window closing.

    The message given is usually along the lines of "You have entered data into this form. If you navigate away from this window, you will lose your data, do you wish to continue?"

    You could use this function to check when someone has entered something into a quick reply box or a normal post box (or for PMs) too, and give a warning that they're going to lose their work.

    I know some people abhor Javascript messages and warnings, but in this case I think it'll be handy - it'll only appear when someone is going to lose some work they've done.


Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.

Advertisement