Janex Posted August 22, 2014 Posted August 22, 2014 Hi all. Is there some way to disable browser refresh/reload page button ? Or catch this event and inform user about that this button is evil for unigui ? WBR Janex Quote
Administrators Farshad Mohajeri Posted August 22, 2014 Administrators Posted August 22, 2014 MainModule->BackjButtonAction = bbaWarnUser Quote
Janex Posted August 23, 2014 Author Posted August 23, 2014 Ok, but now user get dialog "refresh or not refres" and still can refresh. And when close browser user again get dialog - "close or not close". Maybe there is some way via javascript permanently remove any dialogs when push refresh or close browser ? Quote
Administrators Farshad Mohajeri Posted August 23, 2014 Administrators Posted August 23, 2014 Why do you want to prevent user from refreshing? Quote
Administrators Farshad Mohajeri Posted August 23, 2014 Administrators Posted August 23, 2014 You can create a desktop shortcut to your app and run Google Chrome in application mode so all browser buttons will be invisible. http://superuser.com/questions/33548/starting-google-chrome-in-application-mode Quote
Janex Posted August 23, 2014 Author Posted August 23, 2014 I cannot use application mode, because application use ~100 users in hospital and it is very difficult to set application mode for all users and most of users use IE. >> Why do you want to prevent user from refreshing? Because most of users is dummy and pressing browser refresh button for refresh data in grid, and application restarted to login dialog Quote
Administrators Farshad Mohajeri Posted August 23, 2014 Administrators Posted August 23, 2014 You can disable F5 key in uniGUI but nothing can be done for refresh button. Quote
Janex Posted August 23, 2014 Author Posted August 23, 2014 But when I set bbaWarnUser, this warning dialog is called via ExtJS or this is permanently compiled in browsers code ? If from ExtJS, then maybe there is opportunity to something change in ExtJS ? Quote
Administrators Farshad Mohajeri Posted August 23, 2014 Administrators Posted August 23, 2014 this warning dialog comes from browser not Ext js Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.