开发者

An ExtJS panel/tree/something else that polls

All I want is to display a list of records from a database table that are always up-to-date.

My initial thought was to have a constant ajax call every x seconds checking for updates, but wasnt sure if that was the best way to approach it. I have googled around, and such things as COMET, Ext.Direct, polling, pushing (co开发者_高级运维met?) have all come up.

What would be the best way to do this?


I think COMET is overkill.

Just a simple JS timer to call your method to refresh the data. No need to over complicate things the simplest solutions is often the best.


I find auto-updating information distracting at any rate of refresh. I would supply a link or button to refresh.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜