Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Sep 2004
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    chat script refresh rate

    ther is a frame called messages:i placed refrsher(0) in the onload and at the end of the content. why does this keep refreshign the page like every .5 seconds
    the vales for the pulldown are like 1000 ect and stop
    Code:
    function refrsher(time) {
    	rateChoser = parent.status.document.forms['refresher'].elements['time'].value;
    	if(rateChoser == 'stop'  || rateChoser > time) {
    		refrsher(time+500);
    	}
    	else {
    		window.location.reload(true);
    	}
    }

  • #2
    Senior Coder
    Join Date
    Apr 2005
    Posts
    1,051
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    var refreshRate = 5; // in seconds.
    function refresh(frame){
    var myFrame = document.getElementById(frame);
    myFrame.src=myFrame.src;
    setTimeout("refresh(frame)", (refreshRate*1000));
    }
    public string ConjunctionJunction(string words, string phrases, string clauses)
    {
    return (String)(words + phrases + clauses);
    }
    <--- Was I Helpfull? Let me know ---<

  • #3
    New Coder
    Join Date
    Sep 2004
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts
    this is the code im using now and it works.
    Code:
    function refrsher(time) {
    	rateChoser = parent.status.document.timeSelecterForm.SelectTime.value;
    	if(rateChoser == 'stop'  || rateChoser > time) {
    		setTimeout("refrsher(" + (time+500) + ")", 500);
    	}
    	else {
    		window.location.reload(true);
    	}
    }


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •