how to create a while in jquery for alwayes in browser
i want create chat script ;
and for check new replays , I need to a while Once every 4 seconds checking new message in file db.php

sample :

    function while_check_seen()
    {
    	$(".replay").load("../db_pms.php?action=check");	
    	while_check_seen()
    }

this while worked , But very usage CPU :)

very TanX from All 

how to create a while in jquery for alwayes in browser
===

i want create chat script ;
and for check new replays , I need to a while Once every 4 seconds checking new message in file db.php

sample :

    function while_check_seen()
    {
    	$(".replay").load("../db_pms.php?action=check");	
    	while_check_seen()
    }

this while worked , But very usage CPU :)

very TanX from All 
