gordon Posted July 29, 2012 Share 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 Link to comment Share on other sites More sharing options...
zilav Posted July 29, 2012 Share Posted July 29, 2012 http://forums.unigui.com/index.php?/topic/1226-question-about-sessiontimeout/ Link to comment Share on other sites More sharing options...
gordon Posted July 29, 2012 Author Share 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 Link to comment Share on other sites More sharing options...
zilav Posted July 29, 2012 Share Posted July 29, 2012 Just replace the whole template with your html/javascript. Link to comment Share on other sites More sharing options...
gordon Posted July 29, 2012 Author Share 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.. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted July 30, 2012 Administrators Share 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. Link to comment Share on other sites More sharing options...
gerhard.kimmeringer Posted July 26, 2015 Share Posted July 26, 2015 But i need the full url with parameters. There are a way to do this? Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted July 26, 2015 Share 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 Link to comment Share on other sites More sharing options...
gerhard.kimmeringer Posted July 26, 2015 Share 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. Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted July 26, 2015 Share Posted July 26, 2015 i see. please use this : window.location.href you will get url with parameters. Link to comment Share on other sites More sharing options...
gerhard.kimmeringer Posted July 26, 2015 Share Posted July 26, 2015 Now it works! Thanks! That's it! 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