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.

    评论

报告相同问题?