开发者

showing real-time web statistics - hits from visitors

开发者 https://www.devze.com 2023-03-24 08:19 出处:网络
I have a web statistic website based on php script. I want to show in real-time to my clients when a visitors hits their website. The info is presented in static way, the clients must refresh the page

I have a web statistic website based on php script. I want to show in real-time to my clients when a visitors hits their website. The info is presented in static way, the clients must refresh the page to see if any hi开发者_JAVA技巧t ocurred. I searched and tried...but nothing.


use jQuery and ajax

demo:

setInterval(function(){
      $("#statistics").load("statistics.php");
}, 10000);
0

精彩评论

暂无评论...
验证码 换一张
取 消