Click here to Skip to main content
15,892,059 members
Home / Discussions / JavaScript
   

JavaScript

 
QuestionDrag & Drop jQuery to table rows and update database? Pin
btvbill30-Nov-11 10:28
btvbill30-Nov-11 10:28 
AnswerRe: Drag & Drop jQuery to table rows and update database? Pin
Dennis E White1-Dec-11 7:14
professionalDennis E White1-Dec-11 7:14 
QuestionJavascript / JQuery pop-up message question Pin
AeonBlue30-Nov-11 4:59
AeonBlue30-Nov-11 4:59 
AnswerRe: Javascript / JQuery pop-up message question Pin
Not Active30-Nov-11 6:05
mentorNot Active30-Nov-11 6:05 
AnswerRe: Javascript / JQuery pop-up message question Pin
Dennis E White30-Nov-11 7:29
professionalDennis E White30-Nov-11 7:29 
GeneralRe: Javascript / JQuery pop-up message question Pin
AeonBlue30-Nov-11 8:52
AeonBlue30-Nov-11 8:52 
GeneralRe: Javascript / JQuery pop-up message question Pin
Dennis E White30-Nov-11 11:13
professionalDennis E White30-Nov-11 11:13 
QuestionConfirm dialog with OK ,CANCEL buttons on window close Pin
siva45524-Nov-11 20:20
siva45524-Nov-11 20:20 
Hi,
i have an popup which is an aspx page and when i click on browser close button..., the system should check if there is any unsaved data in the form or not. If there is any unsaved data then the message should be displayed (Do you want to leave..?) with OK and Cancel button...
On click of the OK button, the data should not be saved and the user should be returned parent form ie popup should be closed and return to the parent form.On click of the cancel button, the control should return to the Pop.

I had tried the below code...

window.onbeforeunload = close;
function close() {
var result=confirm("Do you really want to close this window");
if (result) {
return true;
}
else {
location.href = document.URL;

}
}
The above code is not working ie the popup is getting closed even on click of closse button....
and when clicked on OK it is dispalying another msgbox with leave this page and Stay on this page buttons...

Please help me regarding the same...
AnswerRe: Confirm dialog with OK ,CANCEL buttons on window close Pin
phome25-Nov-11 23:08
phome25-Nov-11 23:08 
GeneralRe: Confirm dialog with OK ,CANCEL buttons on window close Pin
Shameel26-Dec-11 4:02
professionalShameel26-Dec-11 4:02 
Questionenable check box not working Pin
byka22-Nov-11 9:20
byka22-Nov-11 9:20 
AnswerRe: enable check box not working Pin
Richard MacCutchan22-Nov-11 9:30
mveRichard MacCutchan22-Nov-11 9:30 
GeneralRe: enable check box not working Pin
byka22-Nov-11 9:35
byka22-Nov-11 9:35 
GeneralRe: enable check box not working Pin
Richard MacCutchan22-Nov-11 9:54
mveRichard MacCutchan22-Nov-11 9:54 
QuestionRe: enable check box not working Pin
DaveAuld22-Nov-11 9:46
professionalDaveAuld22-Nov-11 9:46 
AnswerRe: enable check box not working Pin
byka22-Nov-11 9:49
byka22-Nov-11 9:49 
AnswerRe: enable check box not working Pin
Satheesh154622-Nov-11 16:47
Satheesh154622-Nov-11 16:47 
GeneralRe: enable check box not working Pin
byka23-Nov-11 2:15
byka23-Nov-11 2:15 
AnswerRe: enable check box not working Pin
phome26-Nov-11 14:04
phome26-Nov-11 14:04 
QuestionHelp with Javascript Code Pin
ThianBrodie12-Nov-11 19:05
ThianBrodie12-Nov-11 19:05 
AnswerRe: Help with Javascript Code Pin
Not Active13-Nov-11 3:21
mentorNot Active13-Nov-11 3:21 
GeneralRe: Help with Javascript Code Pin
ThianBrodie13-Nov-11 4:10
ThianBrodie13-Nov-11 4:10 
GeneralRe: Help with Javascript Code Pin
Not Active13-Nov-11 4:18
mentorNot Active13-Nov-11 4:18 
GeneralRe: Help with Javascript Code Pin
ThianBrodie13-Nov-11 4:32
ThianBrodie13-Nov-11 4:32 
GeneralRe: Help with Javascript Code Pin
Not Active13-Nov-11 5:28
mentorNot Active13-Nov-11 5:28 

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.