Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Can i use XSL for redirection >Thread Next - Re: Can i use XSL for redirection Re: Can i use XSL for redirectionTo: 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> | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
