开发者

what is the best way to implement a livescroll

Please refer to the "RECENT ACTIVITY" in foursquare.com .. a new information pushes the existing info in a panel. Now my question is how this should ideally be implemented ? 1. By having an ajax poll at regular intervals to fetch the data from DB ? 2.开发者_开发问答 By having this done at the server side, that would schedule at regular intervals to update some datastructures. then from client side get these info at regular intervals. This would reduce the total number of DB calls, but all the clients would get the same information at any certain time. 3. ...

If you open foursquare in multiple browsers session, you'll see different "RECENT ACTIVITY" at all the browsers..

What is the best way to fetch latest information (or, random information) from DB and show it in the UI ?


see DWR to make remote calls from a Java web server to a client web browser for server push. this will reduce traffic as well as db calls

Download the example application with full source

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜