-
Just need a little help
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=usernam e&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/suspend...t-fahimtm.html
Sorry if your busy ;)
-
Re: Just need a little help
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 by Thewinator; 10-28-2007 at 11:44 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules