The reply mechanism of Tianya Forum is displayed at the end of the page where you are staying after you reply. after you refresh the page, the Post just returned to the last page, asking for advice. what method is used and displayed at the end. Yes. The same is true for CSDN. If you refresh the page, you should recalculate the total number of pages and return to the last page. Php is not difficult to implement ., Reply mechanism of Tianya Forum
After you reply to Tianya forum, it will be displayed at the end of the page you stayed at. after you refresh the page, the Post just returned to the last page,
How does this work?
------ Solution --------------------
Display at the end. Yes. The same is true for CSDN.
If you refresh the page, you should recalculate the total number of pages and return to the last page. Php is not difficult to implement.
------ Solution --------------------
Php paging + html anchor
------ Solution --------------------
When a post is submitted through AJAX, the server returns the number of pages of the current post and jumps to the anchor at the end of the current page. after a few seconds, JS redirects you to view_topic.php? Page = the page number that AJAX tells you.
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