dsaxw4201 2011-02-24 18:28
浏览 36

刷新数据库更新的网页

I want to reflect the changes that occur immediately in the table in a database, on the webpage. I have been reading about websockets but I am not very clear about how to implement it. I was wondering that how could I be able to extract that new information is has been added to the table and how do I let the server push it towards the browser.

  • 写回答

2条回答 默认 最新

  • duancong2160 2011-02-24 18:33
    关注

    For pushing data to the users I tried with success http://pusherapp.com/.

    As of how to reflect the change on the database to PusherApp, it depends on your architecture. If you have a beforeSave() callback, or you centralize SQL queries on one file, that's the place to handle it, if not you'll have to track all the places where you need to implement this behavior.

    评论

报告相同问题?

悬赏问题

  • ¥15 软件工程用例图的建立(相关搜索:软件工程用例图|画图)
  • ¥15 如何在arcgis中导出拓扑关系表
  • ¥15 处理数据集文本挖掘代码
  • ¥15 matlab2017
  • ¥15 在vxWorks下TCP/IP编程,总是connect()报错,连接服务器失败: errno = 0x41
  • ¥15 AnolisOs7.9如何安装 Qt_5.14.2的运行库
  • ¥20 求:怎么实现qt与pcie通信
  • ¥50 前后端数据顺序不一致问题,如何解决?(相关搜索:数据结构)
  • ¥15 基于蒙特卡罗法的中介效应点估计代码
  • ¥15 罗技G293和UE5.3