This is a migrated thread and some comments may be shown as answers.

Save, Disgard or Cancel Dialog on window close

1 Answer 91 Views
Window
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 10 Nov 2008, 08:37 PM
Hi,

I have a RadEditor opening up in a RadWindow. The Editor saves changes to a DB when the user clicks save, but I would like to display some sort of confirm dialog if they have made changes in the RadEditor and attempt to close the RadWindow without saving. Possible?

Thanks,
Greg

1 Answer, 1 is accepted

Sort by
0
Greg
Top achievements
Rank 1
answered on 10 Nov 2008, 10:24 PM
Aaah nevermind - I did some good old javascript alert debugging and found that I could get the innerHtml length on page load with

document.getElementById('RadEditor1

_contentIframe').contentWindow.window.document.body.innerHTML
and then i just compared it when I closed the form.

Greg

 

 

 

 

 

 

 

 

 

 

 

 

 

Tags
Window
Asked by
Greg
Top achievements
Rank 1
Answers by
Greg
Top achievements
Rank 1
Share this question
or