Tianya Forum reply Mechanism Solution

Source: Internet
Author: User
Tianya Forum reply mechanism
Tianya Forum just after the reply, will appear at the end of the page you stay, you stay on the first page will be displayed at the end of the first page, but after the refresh, just back to the last post,
It's a way to ask for advice.

------Solution--------------------
Shown at the end. is using the anchor point. The same is true of CSDN.
If you refresh, you should recalculate the total number of pages and go back to the last page. PHP is not difficult to implement.
------Solution--------------------
PHP Paging +html Anchor Point
------Solution--------------------
Submitting a post is an AJAX submission, and then the server returns how many pages the current post has, and then jumps to the anchor point at the end of the current page, after a few seconds js and then jumps you to the page number that View_topic.php?page=ajax tells you.
  • 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.