Welcome Guest, Not a member yet? Register   Sign In
can slow the speed of the redirct operation
#1

[eluser]ahmedbloger[/eluser]
hi every one
my problem is very simple but i cant solve it
i want to redirect to a certain page but the redirect operation go fast so the page which between the first page and the page which will the direct go to cant seen
i am using the code:
redirect('index','refresh');
please help me.
#2

[eluser]pistolPete[/eluser]
I don't know if I understood you correctly, but have a look at: http://billstclair.com/html-redirect2.html
#3

[eluser]ahmedbloger[/eluser]
firstly thank you very much ,
bu in fact i will explain my problem more simply
i have three pages
page1 :which have a certain variable then this page go to the send page
page2:in this page i put the redirect code to the hired page
page Confusedimple normal page
the problem is when i press in the first page it go to the page very fast sow i cant feel with the seconed page or see it is content so i want it to be more slowly
finally i hope to understand me
#4

[eluser]TheFuzzy0ne[/eluser]
Perhaps you'd like to share your code? It will help use see what's happening a bit better.
#5

[eluser]ahmedbloger[/eluser]
hi,
i will post my code:
the first page code:
<?
$data['query']='1';
$this->load->view('index',$data);

?>

index.php code:
<?php
if($query==1)
{
echo "1";
redirect("site/true/","refresh");
}
else
{
echo "false";
redirect("site/false","refresh");
}
?>

and the false and true pages is a simple code

please help me
my problem is that in this example i cant see 1 which in the statement "echo '1';"
but it redirect to the true page directly
thanke for every one helped me and will help me
#6

[eluser]TheFuzzy0ne[/eluser]
The whole point of Pete's post was to suggest you do the redirect from within the page itself, so it tells the browser to redirect after x seconds. I'd suggest you read the article again.
#7

[eluser]ahmedbloger[/eluser]
please put the article link to me and thank you for fast answer
#8

[eluser]TheFuzzy0ne[/eluser]
All you have to do is scroll up...

It's in Pete's first post in this thread. http://ellislab.com/forums/viewthread/109421/#551708
#9

[eluser]ahmedbloger[/eluser]
thank you
#10

[eluser]cpp643[/eluser]
i think u want to make it like Gmail rite redirecting from one page to another on particular action.u can use simple for loop for waiting... or may be use meta tag <META HTTP-EQUIV="Refresh" CONTENT="5; URL=(name of html page)". if you are using multiple view then for loop is helpfully to you




Theme © iAndrew 2016 - Forum software by © MyBB