şunuda deneyebilirsin
farkı
sayfayı yüklendikten sonra 3 saniye bekleyip tekrar çalışması
function overAgain(func){
//yüklendikten 3 saniye sonra tekrar çağır
setTimeout(func,3000);
}
function result(){
$("#result").load("<?php echo base_url("api/turk_coins/").$this->uri->segment(2); ?>",function(){ overAgain("result()"); });
}
function comment(){
$("#comment").load("<?php echo base_url("api/comment_api/").md5($this->uri->segment(2)); ?>" , function(){ overAgain("comment()"); });
}
result();
comment();