Facebook通知更新 [英] facebook notifications update

查看:124
本文介绍了Facebook通知更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,
如何在页面的左上角创建类似于Facebook通知的通知计数器,问题是

如何使用javascript或asp.net进行此计数器并更新值
我想做这样的事情,每5分钟更新一次.与新的计数器.:confused:

如果有人可以通过一些代码技巧帮助我,那将是非常棒的

感谢和问候,:)
Mina Jeffrey

解决方案

使用setTimeout调用您的服务器.确保将处理程序放置得非常小,以免引起服务器过载.

使用AJAX调用服务器.


要在ASP.NET中实现此功能,您需要有一个每5分钟左右执行一次的计时器控件.在执行时,基于结果,使用Javascript,您需要更新计数器.


使用Xml Http请求非常快,faceboos使用它


Dear all,
how can i make notification counter like facebook notifications in the top left of the page , the question is

how to make this counter and update a value using javascript or asp.net
i want to make something like that , that is updated every 5 min. with the new counter.:confused:

if anyone can help me with some code tips , it will be greatful

thanks and regards, :)
Mina Jeffrey

解决方案

Use setTimeout to call your server. Make sure you place the handler very small so that it does not overload the server.

Call the server using AJAX.


For this to be implemented in ASP.NET, you need to have a timer control that will be executed every 5 min or so. On execution, based on the result, using Javascript, you need to update the counter.


Use Xml Http Request its very fast and faceboos use it


这篇关于Facebook通知更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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