• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Redirect after 3 seconds

Hi there,

I'm newbie in CI. I have a dumb question.

Can I redirect page after 3 seconds with using redirect function in CI.



The redirect should be launched from the client side I think.

You should do something like this in javascript (in the head section) :

function redirect(page) {



you could always use the usleep php command to pause the script for 3 seconds... not the most elegant solution but w/e...

[eluser]Michael Wales[/eluser]
Don't ignore the most simple solutions.

[quote author="Michael Wales" date="1213043381"]Don't ignore the most simple solutions.[/quote]

Yeah but I think he was wanting to use CI's redirect function. I'm having the same issue. redirect() should have a parameter for seconds if you're using the refresh method.

that's right, redirect function should have a paramenter redirect(4) direct in 4 sec. hope someone develop

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.