Find a piece of source code. how can this problem be solved?

Source: Internet
Author: User
For a piece of source code, I want to write a page that is a little the same as Sina's meager page (load to the end of the drop-down, after loading the three sections, the page number is displayed ). I also asked how to write it. I got a Sina meager source code, but unfortunately it was JAVA and I couldn't understand it. Have you done this ?, Load as needed? This effect needs to be implemented by js. php is only responsible for providing data. jquery has such plug-in to display the content. most of them are explicit source code.
I want to write a paging

The page size is a bit the same as that of Sina. (the page size is displayed after three sections are loaded from the drop-down list ).

I also asked how to write it. I got a Sina meager source code, but unfortunately it was JAVA and I couldn't understand it.

What have you done?

------ Solution --------------------
Load as needed?
This effect needs to be implemented by js. php is only responsible for providing data.

------ Solution --------------------
Jquery has such a plug-in to display the content. most of the content is the display image, which is loaded when the screen arrives, but the plug-in name remains the same.
------ Solution --------------------
There are many:
10 jquery plug-ins for automatic page turning with unlimited scrolling
------ Solution --------------------
The key is to determine the position of the vertical scroll bar.
When the top of the scroll bar reaches a certain position, request data from php through ajax
This is a loop.
------ Solution --------------------
On one side, there are 10 Weibo posts. js maintains the number of entries on the current user's page. it is updated using ajax and changes the number of entries. if the number of entries exceeds 30, JS deletes the last 20 entries and adds the next page button.

Other statuses are maintained by the server:

1. use ajax to pull data. the server database maintains the last pull Time t1 and pushes the entries after t1 to the user.
2. click the next page, and the server queries the database in chronological order. the page is displayed.

Is it difficult.
------ Solution --------------------
I already said, this is not a php issue.
Give you a core code, and you need to learn to do the next thing on your own.
JScript code
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.