Reinoso Posted December 2, 2013 Posted December 2, 2013 Best to all, Someone would have the kindness to tell me if it is possible to prevent unigui can refresh the page or go back in the browser. For example if a user right click on the page get a phenomenon and one of the options is the go to product above, as if the user presses F5 the page is regargara I regresesando to the first form shown and would like to avoid this behavior. - Since already Agradesco any help you can give me, thanks. Quote
zilav Posted December 3, 2013 Posted December 3, 2013 No, it is not possible. Users always have control over browsers. Just imagine otherwise - where scripts in web pages can block browser's UI or change it's behaviour. The internet will die in 24 hours. If users want to press F5 or go back while working with your unigui app, this probably means that your interface is not intuitive and they are getting lost. Rethink your application design and/or working logic. Quote
Oliver Morsch Posted December 3, 2013 Posted December 3, 2013 You can't prevent "go back", "refresh", "realod", "close", ... totally (see answer of zilav). But you can show a warning, which the user must confirm: Put this code in UniMainForm.script: onbeforeunload = function() { return "This will close the web app! Are you sure?"; }; Quote
Reinoso Posted December 3, 2013 Author Posted December 3, 2013 First of all, Thanks for Reply, both the user zilav as Oliver Morsch and other viewing this topic. The idea is to remove some options to prevent the user from making the slightest error, such that the user would control just exit the application by pressing the exit button because if you get to refresh the window will return to the login system and maybe the user is not interested in going there. For the moment the solution proves Oliver Morsch thanks Quote
Reinoso Posted December 4, 2013 Author Posted December 4, 2013 NO FORM GROWING IN THE MAIN UniMainForm.script WHERE IS THAT METHOD 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.