2

I have a database of news feeds that are sorted by time. The users simply needs to view them line by line. The feeds can get pretty large in numbers so I don't want to show them all at one time. I do not want to make a page view either. So I'm thinking if there is a way to show a page's worth of them in the beginning and as the users scroll down, more begin to appear.

I know this is possible since I think facebook does it. But I'm a little confused at the concept. I'm open to using JavaScript/JQuery and HTML, PHP.

Any ideas on the concept behind this? I'm guessing I need a client side script to access the database.

Any help would be appreciated.

4

1 回答 1

0

您需要有一个 PHP 脚本,它在客户端 AJAX 调用请求时以 JSON 格式返回数据。如果您希望对结果进行排名,这应该在您的查询中轻松执行。

这个jQuery插件我用过很多次了,例子很多: DataTables

于 2013-08-06T15:05:50.267 回答