开发者

An ExtJS panel/tree/something else that polls

开发者 https://www.devze.com 2023-01-30 10:43 出处:网络
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 i

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

精彩评论

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

关注公众号