nction show(){ $.post('xxx.php',function(data){ if(data){ show(); } }); } show();
Relatively simple AJAX long link Case