PDA

View Full Version : Re-Direct Code


cooly291
02-10-2005, 02:32 AM
Is there a code that automattically redirects some one to another page?

Alex Vincent
02-10-2005, 06:18 AM
Typically, from XML alone, the answer is no.

But it's not the last word.

If you control how the document is being sent from the server, you can probably include HTTP headers specifying redirects as necessary, including timed redirects.

If the target application is Mozilla,
<script type="application/x-javascript" xmlns="http://www.w3.org/1999/xhtml"><![CDATA[
// Redirect from JavaScript
]]></script>

I'm not sure if technologies like XLink or XInclude allow for redirects automatically; they might.

liorean
02-11-2005, 08:06 PM
XLink can with xlink:show="replace" xlink:actuate="onLoad". The standard way of redirecting is through HTTP headers, though, which are handled before any parsing takes place anyway.