Just need a little help

fahimtm

New Member
Messages
52
Reaction score
0
Points
0
My account is sspended but I am waiting for unsuspension...But while I wait, I am still editing some of my codes from my PC...:dunno: Just want to know if this below is correct:

<script type="text/javascript">
myvar = "";
timeout = 300;
function exec_refresh()
{
timerID = setTimeout("exec_refresh();", 100);
if (timeout > 0)
{ timeout -= 1; }
else { clearTimeout(timerID); window.location="online.php?order=asc&sort=username&pp=20&page=1"; }
}
exec_refresh();
</script>

---------------------------

Is that right?...I want that very page to refresh thats why. And Corey if your not busy and if you are looking atthis thread please take a look at: http://forums.x10hosting.com/suspended-accounts/34967-unsuspension-request-fahimtm.html
Sorry if your busy ;)
 

Thewinator

New Member
Messages
256
Reaction score
0
Points
0
To refresh your page you could just add a meta:
<meta http-equiv="refresh" content="3">
The content would be the time in seconds before the refresh.
Also your script wouldn't work because its an infinit loop.
If you want to refresh using javascript for some reason then just set a timeout for your window.location and run that just once.
As soon as the page refreshes becouse of that it wil execute once again and so on...
 
Last edited:
Top