开发者

Continuous request with jQuery

After using Meebo I noticed that they had a nice little system for continually getting information from the server. They have 1 single request running, and they continually monitor the response as it's "loading".

I was wondering if there was a way to do this with jQuery. If not, can someone give me some recommendations 开发者_运维问答on where to start doing this in plain Javascript?

Thanks in advance

(P.S. because I know someone's gonna say it - I'm aware of the backend problems this could introduce and I believe have the correct knowledge to prevent against it)


For jQuery over XMPP/BOSH I use: http://github.com/ssoper/jquery-bosh

Comet and BOSH are two technologies that fill the same void.


Check out the comet plug-in, it should help you accomplish that: Comet


Comet will works better if you have dedicated web-server for it. BOSH is the same.

Get a look to Comet-server APE. Read http://www.ape-project.org/ajax-push.html And after it choose any Comet/BOSH software especially for your needs. Good luck)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜