Click here to Skip to main content
11,411,494 members (64,794 online)

Bugs and Suggestions

   

General discussions, site bug reports and suggestions about the site.

For general questions check out the CodeProject FAQs. To report spam and abuse Head to the Spam and abuse watch.


 
GeneralRe: Reputation Suggestion PinmemberDalek Dave21-Dec-10 4:10 
GeneralRe: Reputation Suggestion PinmemberSlacker00721-Dec-10 5:54 
GeneralRe: Reputation Suggestion PinmvpPete O'Hanlon21-Dec-10 4:06 
GeneralRe: Reputation Suggestion PinmemberJohn Simmons / outlaw programmer21-Dec-10 4:24 
GeneralRe: Reputation Suggestion PinmvpPete O'Hanlon21-Dec-10 4:30 
GeneralRe: Reputation Suggestion PinmemberKeith Barrow21-Dec-10 8:29 
GeneralRe: Reputation Suggestion PinadminChris Maunder21-Dec-10 13:43 
GeneralRe: Reputation Suggestion PinadminChris Maunder21-Dec-10 13:33 
GeneralRe: Reputation Suggestion PinmvpPete O'Hanlon21-Dec-10 21:18 
GeneralRe: Reputation Suggestion PinmemberDaveAuld21-Dec-10 12:43 
GeneralSuggestion PinmemberKhaniya21-Dec-10 0:17 
GeneralRe: Suggestion PinmentorSandeep Mewara21-Dec-10 0:33 
GeneralRe: Suggestion PinmemberKhaniya21-Dec-10 3:40 
Generaladd an "onbeforeunload" handler to the article editor to prevent accidental loss PinmemberDavid Jeske20-Dec-10 10:29 
Currently, on the article editor at the following URL...

http://www.codeproject.com/script/Articles/Edit.aspx?aid=xxxxx

One can spend a long time editing an article, and then an accidental "navigate" off the page causes all that work to be LOST!

This is especially problematic because the editor often loses key-focus, and browsers often map the backspace key to "back", so when the editor loses key focus while you are backspacing, often it causes a "back navigate" which then loses the article content.

However, there is an EASY fix for this and other problems related to navigating away. Simply set up a javascript handler for "onbeforeunload". If the user accidentally tries to navigate off the page, the dialog will give them the chance to cancel the navigate before it destroys all their work. All that's needed is the following javascript added to the page:

window.onbeforeunload = function() {
    return 'You have unsaved changes!';
}

Then, a small javascript handler should be added to the buttons which "validly" leave the page which turn off this handler.
GeneralRe: add an "onbeforeunload" handler to the article editor to prevent accidental loss PinadminChris Maunder20-Dec-10 17:36 
GeneralRe: add an "onbeforeunload" handler to the article editor to prevent accidental loss PinmemberDavid Jeske20-Dec-10 21:35 
GeneralRe: add an "onbeforeunload" handler to the article editor to prevent accidental loss PinadminChris Maunder21-Dec-10 3:15 
GeneralRe: add an "onbeforeunload" handler to the article editor to prevent accidental loss PinmemberDavid Jeske21-Dec-10 10:04 
GeneralRe: add an "onbeforeunload" handler to the article editor to prevent accidental loss PinadminChris Maunder21-Dec-10 14:37 
GeneralRe: add an "onbeforeunload" handler to the article editor to prevent accidental loss PinmemberDavid Jeske21-Dec-10 16:31 
GeneralRe: add an "onbeforeunload" handler to the article editor to prevent accidental loss PinmvpNishant Sivakumar21-Dec-10 6:00 
GeneralForum notifications and Microsoft's SmartScreen filter Pinmemberdasblinkenlight20-Dec-10 9:13 
GeneralRe: Forum notifications and Microsoft's SmartScreen filter PinmemberSlacker00720-Dec-10 10:29 
GeneralRe: Forum notifications and Microsoft's SmartScreen filter Pinmemberdasblinkenlight20-Dec-10 10:34 
GeneralRe: Forum notifications and Microsoft's SmartScreen filter PinmemberSlacker00720-Dec-10 10:39 
GeneralRe: Forum notifications and Microsoft's SmartScreen filter PinadminChris Maunder20-Dec-10 17:37 
GeneralBUG: Voting Stars Not Showing Properly PinmemberSlacker00720-Dec-10 8:35 
GeneralRe: BUG: Voting Stars Not Showing Properly PinmvpLuc Pattyn20-Dec-10 8:39 
GeneralRe: BUG: Voting Stars Not Showing Properly PinmemberSlacker00720-Dec-10 8:44 
GeneralRe: BUG: Voting Stars Not Showing Properly PinmvpLuc Pattyn20-Dec-10 8:50 
GeneralRe: BUG: Voting Stars Not Showing Properly PinmemberSlacker00720-Dec-10 9:00 
GeneralRe: BUG: Voting Stars Not Showing Properly PinmvpLuc Pattyn20-Dec-10 9:24 
GeneralRe: BUG: Voting Stars Not Showing Properly Pinmemberaspdotnetdev20-Dec-10 8:45 
GeneralRe: BUG: Voting Stars Not Showing Properly Pinmemberaspdotnetdev20-Dec-10 8:46 
GeneralWhy does this happen? Pinmemberbleedingfingers20-Dec-10 1:00 
GeneralRe: Why does this happen? PinmvpLuc Pattyn20-Dec-10 3:48 
GeneralRe: Why does this happen? Pinmemberbleedingfingers20-Dec-10 21:23 
GeneralAdvert problem PinmemberTom Deketelaere20-Dec-10 0:31 
GeneralRe: Advert problem PinmemberDalek Dave20-Dec-10 0:58 
GeneralRe: Advert problem PinmemberAnkur\m/20-Dec-10 1:06 
GeneralRe: Advert problem PinadminChris Maunder20-Dec-10 1:23 
GeneralRe: Advert problem PinmemberKeith Barrow20-Dec-10 1:54 
GeneralRe: Advert problem PinadminChris Maunder20-Dec-10 3:08 
GeneralRe: Advert problem Pinmemberaspdotnetdev20-Dec-10 8:24 
GeneralDaily News Email Discussions Section Contains Link to Article Pinmemberaspdotnetdev19-Dec-10 21:37 
GeneralRe: Daily News Email Discussions Section Contains Link to Article PinadminChris Maunder20-Dec-10 3:06 
GeneralPrinting Articles PinmemberCreF19-Dec-10 21:16 
GeneralRe: Printing Articles PinadminChris Maunder20-Dec-10 3:30 
Generalunexpected newlines PinmvpLuc Pattyn19-Dec-10 18:20 
GeneralRe: unexpected newlines PinadminChris Maunder19-Dec-10 18:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.150414.5 | Last Updated 26 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid