如何在收到新消息时通知. [英] How to Notify when New Message is Received.

查看:108
本文介绍了如何在收到新消息时通知.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次收到新消息时如何显示消息.
如果收到了新的反馈,则应该表明那里有新的反馈.
实际上,我的应用程序中的反馈来自 Employees to Admin ,反之亦然.

谁能帮忙.
请....

How can i Display the Message every time when a new Message is Received.
If new Feedback is received than it should show that new feedback is there.
Actually Feedback in my application is coming from Employees to Admin and Vice Versa for admin.


Can anyone help.
Please....

推荐答案

Web和SQL都不是我所谓的推送"技术.实际上,您实际上必须主动要求两者都提供信息.这意味着您必须定期查询数据库,或者实际上是发出Web请求才能接收信息.您可以尝试使用线程来完成数据库查询部分,但是要更新网页以反映新信息,您可能必须依靠重新加载页面(通常是由于用户交互的结果)才能刷新页面.页面上的状态指示器.
Neither the web nor SQL are what I call "push" technologies. You actually have to actively request information from both. That means you have to periodically query the database, or actually make a web request in order to receive information. You can try using a thread to accomplish the database query part, but for updating the web page to reflect new info, you probably have to rely on a page reload to happen (usually as a result of user interaction) so that you can refresh the status indicator(s) on the page.


这篇关于如何在收到新消息时通知.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆