dongxikuo5171 2017-04-25 12:39
浏览 228


i am at this moment stuck with a problem :

Let's say there is two computers : A, and B.

We do "post request" and "insert in mysql database" with computer A.

I want to refresh a page on computer B (or better, a div with Ajax), when my tables in my database are updated.

The easiest but worst solution that i found is to do a select in the database with a counter, every X seconds for exemple and refresh the page of B if the counter is higher than X secondes before.

I'm working on this project in php, javascript, and jQuery.

How can i do that ? I want a good solution, but quickly realisable.

Thanks !

(Computer A and Computer B aren't in the same page)

  • 写回答

1条回答 默认 最新


      相关推荐 更多相似问题


      • ¥15 syn6288无法合成中文
      • ¥15 String类型的数据url转化成可取到单个balckboard_list中的内容
      • ¥15 R语言绘制火山图对数据使用case when函数报错
      • ¥15 关于对一篇论文的统计图作图产生好奇
      • ¥15 如何使用RISC-V对斐波那契递归算法进行优化
      • ¥15 OBS 虚拟摄像头和真实摄像头区别
      • ¥15 yolov5运行detect 过程中的报错一直无法解决
      • ¥15 jsx写法 插槽不生效的问题
      • ¥15 MATLAB 调用comsol如何加速设计?
      • ¥15 echarts地图添加点击事件