Vision Posted November 25, 2019 Share Posted November 25, 2019 Hi ,I'm using unigui UniGui v1.90.0.1514 . I need to set cookie when user see unimainmodule-->BackButtonAction:=bbaWarnUser; A callback to a procedure should be perferct.. It is possible? IN PARTICULAR: i need to set cookie when RELOAD is pressed. Tnks Quote Link to comment Share on other sites More sharing options...
Vision Posted November 28, 2019 Author Share Posted November 28, 2019 up Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 28, 2019 Share Posted November 28, 2019 41 minutes ago, cristian said: up Maybe, something like this? MainForm.Script: window.addEventListener('unload', function(){ document.cookie = "reloaded=yes" }); Quote Link to comment Share on other sites More sharing options...
Vision Posted November 28, 2019 Author Share Posted November 28, 2019 1 hour ago, Sherzod said: Maybe, something like this? MainForm.Script: window.addEventListener('unload', function(){ document.cookie = "reloaded=yes" }); Hi tnks for reply, i just need 2 things: 1) How to integrate and where? I mean, is something like addJs and i have to put in main.create? 2) I need to set specific value in cookies, so, can i have an example? Tnks again Quote Link to comment Share on other sites More sharing options...
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.