+ Reply to Thread
Results 1 to 2 of 2

Thread: Just need a little help

  1. #1
    fahimtm is offline x10Hosting Member fahimtm is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    You Stalker!
    Posts
    52

    Post 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 ;)

  2. #2
    Thewinator is offline x10 Lieutenant Thewinator is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    [NL]
    Posts
    256

    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.



+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers