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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:31:30+00:00 2026-05-24T21:31:30+00:00

I want to using of the jQuery pagination ,The problem is in this that,

  • 0

I want to using of the jQuery pagination,The problem is in this that, for this must all data in the tabale(database) are select.
Now for example if we have a table database of 10,000 rows, for pagination with jQuery size it is immense(select all to page).

What is the solution of the use pagination jQuery with the low size data in page?

NOTE: i not want use of plugin

With respect

  • 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-24T21:31:32+00:00Added an answer on May 24, 2026 at 9:31 pm

    Regardless of whether you use a plugin, or jQuery for that matter, you should be paginating these on the server with your DB query as opposed to selecting everythign and then paginating the data. You would do this by using LIMIT and OFFSET in the query.

    First make a qount query to determine how man records there are:

    SELECT COUNT(*) AS nb_records FROM your_table;

    You now have all the records available for the query. And you can figure out how many total pages you have based on how many records you want per page something like this in php:

    $pages = ceil($nb_records/$max_per_page);

    So now that you have this figured out you can use a page number parameter passed from the request to determine the beginning offset of the records for that page and query for the data. For example if you pass in page 2 and there are 100 total records, and you want 10 per page you can calculate the offset for the start of page 2 is 20 ($max_per_page*$page = $offset) making your query:

    SELECT * FROM your_table LIMIT 20 OFFSET 40;

    So if we are talking ajax on the frontend you would make a request to the page performing the query with the page number something like this:

    $.ajax({
       url: 'page/that/makes/query.php'
       type: 'get',
       data: {"page": 1} // or whatever page}
       success: function(data){}
    });
    

    This would then return either the complete html markup for the “page” of records or a data object (JSON, XML) containing the details of each record which you would use to build the html.

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

Sidebar

Related Questions

I want to determine (using JQuery) if my $(this).data contains an array with a
I have a few divs that I want to animate using jQuery. However, I
I am using jquery UI tabs and want to know that , is it
In my project, i am using the jquery pagination of jquery.dataTables.min.js. In that when
I want to create a pagination script using jquery UI's slider widget. So far
I have a custom event that I want to fire using jQuery's trigger method:
I am using this jquery datatable plugin to display information from database. My table
Here's some sample code that I want to control using jQuery (white button bg
I have a simple link click simulation that I want to do using jQuery.
I am using jQuery datatable server side processing. Now I want to change the

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.