Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7737867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:06:58+00:00 2026-06-01T08:06:58+00:00

I made pagination with PHP and jQuery for topic+entry project Lets say a topic

  • 0

I made pagination with PHP and jQuery for topic+entry project

Lets say a topic has five pages. I made a refer system if my user write “@5” in 10th post and another user clicked @5, page slide up to 5th comment. But I don’t know how to refer to if user write “@5” in 20th post. page may not find that div because 5th post is at 1st page,
and my pagination per page limit is 15 and I have 5 pages.

What am I supposed to do? Maybe I can calculate fifth post is in the first page and make a chain events in jQuery: go to first page and slide to fifth post etc I don’t know that is.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T08:06:59+00:00Added an answer on June 1, 2026 at 8:06 am

    You can use the same method than stackoverflow uses to link answsers: you provide in the url the id of the page, and the id of the specific answer (or comment, in your case). And your php script, when it sees this format of url, thansforms the url with an html anchor.

    For example: http://yoursite/question_id/comment_id is redirected to site/question_id#comment_id

    You can test it on this very answer by clicking this link: https://stackoverflow.com/a/10027770/311744.
    This url provides enough information so that the server redirects to the correct page (the current page in this case), with the anchor to this answer (#10027770).

    Then you can handle manually the special case where the comment is on the current page and prevent the reload of the same page with javascript (but I woudn’t bother, and SO doesn’t either)


    Edit: What I understand is that you want to be able to click on “@5” written on a user comment, and this comment should somehow be displayed.
    At this point you have two solutions:

    • You redirect to the page where you can find the comment (and if this comment is on another page, you should load the page. This is what I explained before.
    • You can just load the comment below the comment where the reference is, just like youtube does when you load reply to comments. (on this youtube page you have some top comments with replies that you can test)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've made my own jquery pagination where when you press the page button, the
UPDATE: SOLVED! For the broken pages I simply made an admin controller. That has
I've build an application (with PHP, Codeigniter and jQuery) that uses ajax for pagination,
I made a class that derives from Component: public class MyComponent: System.ComponentModel.Component { }
I have 3 file index.php, .js file, and a.php file. i made a ajax
For some months I've been working on a home-made operating system. Currently, it boots
I made a script which iterates through a couple pages of a third party
I made a fast google search about this topic but I can't find any
EDIT: This question has been made redundant by this question as much of the
i have a problem with the kohana pagination. i have made a method for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.