weixin_33727510 2015-08-24 19:20 采纳率: 0%
浏览 36

将更新推送给其他用户

I am trying to understand how to do the following:

I have a dashboard that is used by two different user types. One user takes an action and I update my db with submitted data using .ajax() post on a separate page. After the data is stored I return response and update this user's view with jQuery.

Now, the other user, who this data is relevant to has a portal open as well -- how do I update his view without constantly refreshing his page?

  • 写回答

2条回答 默认 最新

  • weixin_33733810 2015-08-24 19:23
    关注

    The best way to do this without refreshing his page would be to query the server via ajax at a given interval and re-render only the data display if needed.

    评论

报告相同问题?

悬赏问题

  • ¥15 iOS 自定义输入法-第三方输入法
  • ¥15 很想要一个很好的答案或提示
  • ¥15 扫描项目中发现AndroidOS.Agent、Android/SmsThief.LI!tr
  • ¥15 怀疑手机被监控,请问怎么解决和防止
  • ¥15 Qt下使用tcp获取数据的详细操作
  • ¥15 idea右下角设置编码是灰色的
  • ¥15 全志H618ROM新增分区
  • ¥15 在grasshopper里DrawViewportWires更改预览后,禁用电池仍然显示
  • ¥15 NAO机器人的录音程序保存问题
  • ¥15 C#读写EXCEL文件,不同编译