Welcome Guest, Not a member yet? Register   Sign In
javascript before redirect
#2

[eluser]Nick Husher[/eluser]
I don't know for sure, but I think that CI uses a header redirect rather than an HTML redirect when you use the redirect function. You should think about doing the redirection in javascript-

Code:
<html>
<head>
  <title>File does not exist!</title>
</head>
<body>
  <h1>ONOES!<h1>
  <p>
   The file you requested does not exist!
   Sit tight and your browser will redirect you in a second. Or,
   <a href="&lt;?=base_url().'/Front_cont/input_dir_ufpb_wp' ?&gt;">
    click here to continue
   </a>.
  </p>
  <>script type="text/javascript">
   var redirect = function() {
    document.location = &lt;?=base_url().'/Front_cont/input_dir_ufpb_wp' ?&gt;
   }

   setTimeout(redirect, 5000); // call redirect in 5 seconds
  <>/script>
&lt;/body&gt;
&lt;/html&gt;


Messages In This Thread
javascript before redirect - by El Forum - 11-03-2008, 08:17 PM
javascript before redirect - by El Forum - 11-03-2008, 08:40 PM
javascript before redirect - by El Forum - 11-03-2008, 09:02 PM
javascript before redirect - by El Forum - 11-03-2008, 09:24 PM
javascript before redirect - by El Forum - 11-04-2008, 09:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB