Click here to Skip to main content
12,501,207 members (40,373 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 Pin
Dalek Dave21-Dec-10 3:10
memberDalek Dave21-Dec-10 3:10 
GeneralRe: Reputation Suggestion Pin
Slacker00721-Dec-10 4:54
memberSlacker00721-Dec-10 4:54 
GeneralRe: Reputation Suggestion Pin
Pete O'Hanlon21-Dec-10 3:06
mvpPete O'Hanlon21-Dec-10 3:06 
GeneralRe: Reputation Suggestion Pin
John Simmons / outlaw programmer21-Dec-10 3:24
memberJohn Simmons / outlaw programmer21-Dec-10 3:24 
GeneralRe: Reputation Suggestion Pin
Pete O'Hanlon21-Dec-10 3:30
mvpPete O'Hanlon21-Dec-10 3:30 
GeneralRe: Reputation Suggestion Pin
Keith Barrow21-Dec-10 7:29
memberKeith Barrow21-Dec-10 7:29 
GeneralRe: Reputation Suggestion Pin
Chris Maunder21-Dec-10 12:43
adminChris Maunder21-Dec-10 12:43 
GeneralRe: Reputation Suggestion Pin
Chris Maunder21-Dec-10 12:33
adminChris Maunder21-Dec-10 12:33 
GeneralRe: Reputation Suggestion Pin
Pete O'Hanlon21-Dec-10 20:18
mvpPete O'Hanlon21-Dec-10 20:18 
GeneralRe: Reputation Suggestion Pin
DaveAuld21-Dec-10 11:43
memberDaveAuld21-Dec-10 11:43 
GeneralSuggestion Pin
Khaniya20-Dec-10 23:17
memberKhaniya20-Dec-10 23:17 
GeneralRe: Suggestion Pin
Sandeep Mewara20-Dec-10 23:33
mentorSandeep Mewara20-Dec-10 23:33 
GeneralRe: Suggestion Pin
Khaniya21-Dec-10 2:40
memberKhaniya21-Dec-10 2:40 
Generaladd an "onbeforeunload" handler to the article editor to prevent accidental loss Pin
David Jeske20-Dec-10 9:29
memberDavid Jeske20-Dec-10 9: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 Pin
Chris Maunder20-Dec-10 16:36
adminChris Maunder20-Dec-10 16:36 
GeneralRe: add an "onbeforeunload" handler to the article editor to prevent accidental loss Pin
David Jeske20-Dec-10 20:35
memberDavid Jeske20-Dec-10 20:35 
GeneralRe: add an "onbeforeunload" handler to the article editor to prevent accidental loss Pin
Chris Maunder21-Dec-10 2:15
adminChris Maunder21-Dec-10 2:15 
GeneralRe: add an "onbeforeunload" handler to the article editor to prevent accidental loss Pin
David Jeske21-Dec-10 9:04
memberDavid Jeske21-Dec-10 9:04 
GeneralRe: add an "onbeforeunload" handler to the article editor to prevent accidental loss Pin
Chris Maunder21-Dec-10 13:37
adminChris Maunder21-Dec-10 13:37 
GeneralRe: add an "onbeforeunload" handler to the article editor to prevent accidental loss Pin
David Jeske21-Dec-10 15:31
memberDavid Jeske21-Dec-10 15:31 
GeneralRe: add an "onbeforeunload" handler to the article editor to prevent accidental loss Pin
Nishant Sivakumar21-Dec-10 5:00
mvpNishant Sivakumar21-Dec-10 5:00 
GeneralForum notifications and Microsoft's SmartScreen filter Pin
dasblinkenlight20-Dec-10 8:13
memberdasblinkenlight20-Dec-10 8:13 
GeneralRe: Forum notifications and Microsoft's SmartScreen filter Pin
Slacker00720-Dec-10 9:29
memberSlacker00720-Dec-10 9:29 
GeneralRe: Forum notifications and Microsoft's SmartScreen filter Pin
dasblinkenlight20-Dec-10 9:34
memberdasblinkenlight20-Dec-10 9:34 
GeneralRe: Forum notifications and Microsoft's SmartScreen filter Pin
Slacker00720-Dec-10 9:39
memberSlacker00720-Dec-10 9:39 
GeneralRe: Forum notifications and Microsoft's SmartScreen filter Pin
Chris Maunder20-Dec-10 16:37
adminChris Maunder20-Dec-10 16:37 
GeneralBUG: Voting Stars Not Showing Properly Pin
Slacker00720-Dec-10 7:35
memberSlacker00720-Dec-10 7:35 
GeneralRe: BUG: Voting Stars Not Showing Properly Pin
Luc Pattyn20-Dec-10 7:39
mvpLuc Pattyn20-Dec-10 7:39 
GeneralRe: BUG: Voting Stars Not Showing Properly Pin
Slacker00720-Dec-10 7:44
memberSlacker00720-Dec-10 7:44 
GeneralRe: BUG: Voting Stars Not Showing Properly Pin
Luc Pattyn20-Dec-10 7:50
mvpLuc Pattyn20-Dec-10 7:50 
GeneralRe: BUG: Voting Stars Not Showing Properly Pin
Slacker00720-Dec-10 8:00
memberSlacker00720-Dec-10 8:00 
GeneralRe: BUG: Voting Stars Not Showing Properly Pin
Luc Pattyn20-Dec-10 8:24
mvpLuc Pattyn20-Dec-10 8:24 
GeneralRe: BUG: Voting Stars Not Showing Properly Pin
aspdotnetdev20-Dec-10 7:45
memberaspdotnetdev20-Dec-10 7:45 
GeneralRe: BUG: Voting Stars Not Showing Properly Pin
aspdotnetdev20-Dec-10 7:46
memberaspdotnetdev20-Dec-10 7:46 
GeneralWhy does this happen? Pin
bleedingfingers20-Dec-10 0:00
memberbleedingfingers20-Dec-10 0:00 
GeneralRe: Why does this happen? Pin
Luc Pattyn20-Dec-10 2:48
mvpLuc Pattyn20-Dec-10 2:48 
GeneralRe: Why does this happen? Pin
bleedingfingers20-Dec-10 20:23
memberbleedingfingers20-Dec-10 20:23 
GeneralAdvert problem Pin
Tom Deketelaere19-Dec-10 23:31
memberTom Deketelaere19-Dec-10 23:31 
GeneralRe: Advert problem Pin
Dalek Dave19-Dec-10 23:58
memberDalek Dave19-Dec-10 23:58 
GeneralRe: Advert problem Pin
Ankur\m/20-Dec-10 0:06
memberAnkur\m/20-Dec-10 0:06 
GeneralRe: Advert problem Pin
Chris Maunder20-Dec-10 0:23
adminChris Maunder20-Dec-10 0:23 
GeneralRe: Advert problem Pin
Keith Barrow20-Dec-10 0:54
memberKeith Barrow20-Dec-10 0:54 
GeneralRe: Advert problem Pin
Chris Maunder20-Dec-10 2:08
adminChris Maunder20-Dec-10 2:08 
GeneralRe: Advert problem Pin
aspdotnetdev20-Dec-10 7:24
memberaspdotnetdev20-Dec-10 7:24 
GeneralDaily News Email Discussions Section Contains Link to Article Pin
aspdotnetdev19-Dec-10 20:37
memberaspdotnetdev19-Dec-10 20:37 
GeneralRe: Daily News Email Discussions Section Contains Link to Article Pin
Chris Maunder20-Dec-10 2:06
adminChris Maunder20-Dec-10 2:06 
GeneralPrinting Articles Pin
CreF19-Dec-10 20:16
memberCreF19-Dec-10 20:16 
GeneralRe: Printing Articles Pin
Chris Maunder20-Dec-10 2:30
adminChris Maunder20-Dec-10 2:30 
Generalunexpected newlines Pin
Luc Pattyn19-Dec-10 17:20
mvpLuc Pattyn19-Dec-10 17:20 
GeneralRe: unexpected newlines Pin
Chris Maunder19-Dec-10 17:34
adminChris Maunder19-Dec-10 17:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    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
Web02 | 2.8.160919.1 | Last Updated 25 Sep 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid