Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Can i use XSL for redirection

From: "Neil Smith [MVP Digital Media]" <neil@------.--->
To: NULL
Date: 5/13/2005 8:41:00 AM
While you *could* do this, it's bad practice for at least 2 reasons : 

1) Only IE on PC supports VBScript so 25+% of your users see nothing
2) Only people with javascript turned on will execute the redirect.
(and [3] you have 2 dots in http://www.mynewURL..com ;-)

IMO a *much* safer way to do this is to use the standard <meta /> tag
with a redirect, which is almost universally supported and requires no
script : Place this instead in the <head /> tags of your HTML :

<meta http-equiv="refresh" content="0;url=http://www.mynewURL.com" />

If you want to be fancy, your HTML could have a short message in the
body saying "redirecting in 2 seconds" as you do, and then change the
Zero in the line above, to 2, which gives a 2 second delay till the
redirect is actioned.

In many cases you can consider the http-equiv meta tags to be
equivalent to an HTTP header with the same action hence their name ;-)

Cheers - Neil

On 12 May 2005 13:59:32 -0700, gadrin7@a... wrote:

>Could you generate a response body that's basically a blank HTML page
>that contains a SCRIPT that executes via the BODY's
>onload="MyRedirectScript" ???
>
>You might be able to place a few lines that say "No Results, please
>wait you're being redirected" before the script executes.
>
><SCRIPT language="VBScript">
>   Sub MyRedirectScript
>     window.navigate "http://www.mynewURL..com"
>   End Sub
></SCRIPT>
>
><BODY onload="MyRedirectScript >
>
><h2>No results found...redirecting you to ...</h2>
>
></BODY>



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent