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 497087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:44:53+00:00 2026-05-13T05:44:53+00:00

I am going to write an Ajax pagination code by myself using jQuery and

  • 0

I am going to write an Ajax pagination code by myself using jQuery and css . Can you suggest me an algorithm or steps to complete that code successfully.

  • 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-05-13T05:44:53+00:00Added an answer on May 13, 2026 at 5:44 am

    This is how I did it for one of my old project.

    1. Create a html table and a set of “li”s with relevant page numbers ( you have to calculate the number of pages to display according to the number of rows matching to the search value in the database).

    2. I wrote a function to send jquery ajax request with Search text value, result set start index and number of rows per page. Replace the existing search table data ( + pagination li set) with response data returned from the server.

    3. Then bind above function to the click event of the set of “li”s I have mentioned in the first point. ( result set start index and number of rows depends on the clicked li element. )

    4. In the server side, Query the database for selected result set range.
      SELECT * FROM my TABLE WHERE search_field = ‘SEARCH_VALUE%’ LIMIT START_INDEX_FOR_RESULT_SET , NUMBER_OF_ROWS_PER_PAGE

    Create HTML structure of the search result table and navigation “li”s and send it as the response for the ajax request. See step 2 for what will happen to this generated html content.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to write a javascript heavy portion of my Asp.net MVC Web
I have a pretty limited experience with AJAX and javascript so hopefully this is
I have the following ajax call: $(#welcome a.close).click(function(e) { $.ajax({ type: GET, url: /visitors/hide_welcome,
I have a custom UI control which has a JavaScript class written around the
I know there are more threads about this but they dont help me and
I have a strange problem with sinatra... In my app the login form is
I have a rhtml partial mypartial which contains a js block like this: <script
i have been working on a new .net MVC site and have integrated some
On this site each page is made up of multiple .jsp files. There is
From reading many articles, such as How do I include a JavaScript file in

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.