Janex Posted August 22, 2014 Share 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 Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted August 22, 2014 Administrators Share Posted August 22, 2014 MainModule->BackjButtonAction = bbaWarnUser Link to comment Share on other sites More sharing options...
Janex Posted August 23, 2014 Author Share 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 ? Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted August 23, 2014 Administrators Share Posted August 23, 2014 Why do you want to prevent user from refreshing? Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted August 23, 2014 Administrators Share 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 Link to comment Share on other sites More sharing options...
Janex Posted August 23, 2014 Author Share 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 Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted August 23, 2014 Administrators Share Posted August 23, 2014 You can disable F5 key in uniGUI but nothing can be done for refresh button. Link to comment Share on other sites More sharing options...
Janex Posted August 23, 2014 Author Share 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 ? Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted August 23, 2014 Administrators Share Posted August 23, 2014 this warning dialog comes from browser not Ext js Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now