gordon Posted July 29, 2012 Posted July 29, 2012 Got an app working fine.. When I close the last form, I get a "Restart application" link.. Id like to redirect the browser to my main page after my main form closes.. How do i do that? thanks in advance.. Gordon Quote
zilav Posted July 29, 2012 Posted July 29, 2012 http://forums.unigui.com/index.php?/topic/1226-question-about-sessiontimeout/ Quote
gordon Posted July 29, 2012 Author Posted July 29, 2012 http://forums.unigui.com/index.php?/topic/1226-question-about-sessiontimeout/ Thanks , I see it now.. but in looking at the code.. <html> <body bgcolor="#dfe8f6"> <p style="text-align:center;color:#0000A0">[###message###]</p> <p style="text-align:center;color:#A05050"><a href="[###url###]">Restart application</a></p> </body> </html> How do i assign the vars "URL" and "messagre" in this code to send back to the browser? Gordon Quote
zilav Posted July 29, 2012 Posted July 29, 2012 Just replace the whole template with your html/javascript. Quote
gordon Posted July 29, 2012 Author Posted July 29, 2012 Just replace the whole template with your html/javascript. Ok, thanks.. that worked.. I was just curious what that URL variable was for.. Quote
Administrators Farshad Mohajeri Posted July 30, 2012 Administrators Posted July 30, 2012 Ok, thanks.. that worked.. I was just curious what that URL variable was for.. URL variable will point to a restart link for same app. Quote
gerhard.kimmeringer Posted July 26, 2015 Posted July 26, 2015 But i need the full url with parameters. There are a way to do this? Quote
Hayri ASLAN Posted July 26, 2015 Posted July 26, 2015 Hi, I am using this: UniserverModule.Servermessages.TerminateTemplate: [###url###] <-- With this i getting url with parameters. Also you can change [###url###] to requested url. Like : location.href = "http://forums.unigui.com/"; <html> <script> function redirect() { location.href = "[###url###]"; } window.onpaint = redirect(); </script> <body bgcolor="#dfe8f6"> </body> </html> 1 Quote
gerhard.kimmeringer Posted July 26, 2015 Posted July 26, 2015 Hi and thanks, for me [###url###] bring only the url, not the paramaters. I have try it only in standalone mode. Is it possible that is different with IIS? It is importent because each session have different parameters. Quote
Hayri ASLAN Posted July 26, 2015 Posted July 26, 2015 i see. please use this : window.location.href you will get url with parameters. 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.