Jump to content

Redirect at Close


gordon

Recommended Posts

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

 

 

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

  • 2 years later...

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>

  • Upvote 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...