EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 13, 2024, 01:57:55 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
Display warning when losing a tab in edit mode
Poll
Question:
Display warning when losing a tab in edit mode
related to warning message
0 (0%)
related to warning message
0 (0%)
Total Voters: 0
Pages: [
1
]
« previous
next »
Print
Author
Topic: Display warning when losing a tab in edit mode (Read 6088 times)
srg
Newbie
Posts: 5
Display warning when losing a tab in edit mode
«
on:
April 25, 2014, 12:33:05 AM »
Hi all,
I have a requirement that, if any datagrid is in edit mode it need to display warning with popup with the message "Unsaved data will be lost. Do you want to proceed".
Note: It should not be confirm navigation what we see on chrome.
here i am using this code.
window.addEventListener('beforeunload', function(e) {
var confirmationMessage = "Unsaved data will be lost. Do you want to proceed?";
(e || window.event).returnValue = confirmationMessage;
});
But it is showing confirm navigation. not the popup what ineed . can anyone give me a solution ..
Thanks in advance..
Swetha.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...