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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:45:21+00:00 2026-05-26T06:45:21+00:00

im looking for a pagin system that has the following chraracteristics: i would parse

  • 0

im looking for a pagin system that has the following chraracteristics:

i would parse data from a database like this for ex:

<ul>
<li>data extracted from db<li>
<li>data extracted from db<li>
<li>data extracted from db<li>
<li>data extracted from db<li>
<li>data extracted from db<li>
<li>data extracted from db<li>
</ul>

then this markup would be treated client side with jquery to create a pagination, so no ajax here, i only call the db to populate and build my markup then i treat it with jquery on client side.

anyone knows some good examples on how to make this
tahnks

  • 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-26T06:45:21+00:00Added an answer on May 26, 2026 at 6:45 am

    If you could be a little bit more specific about what exactly you aren’t sure about, that would be very helpful, but with what you’ve given me above, I would say that you want to get all of the information from the database at once (since you specifically cannot use AJAX to bring in more database information as you paginate). As for the pagination portion of your code, I have used gbirke’s jQuery pagination module to great success.

    https://github.com/gbirke/jquery_pagination#readme

    — EDIT —

    Wanted to address your comments here. This plugin can absolutely be used with DB and php. I’m assuming that you can get your above comments onto the page through php from the DB:

    <ul>
    <li>data extracted from db<li>
    <li>data extracted from db<li>
    <li>data extracted from db<li>
    <li>data extracted from db<li>
    <li>data extracted from db<li>
    <li>data extracted from db<li>
    </ul>
    

    Basically, you just hide the content at the ul level and give the ul a class. You would then use a jquery selector to pick out the elements from that list that you need and clone them. For instance, you would want your pagination callback to have something like this:

    $('.paged-content-area').empty();
    for(var i = 0; i < items_per_page; i++) {
        var new_content = $('ul.hidden-content li:eq('+((page_index*items_per_page) + i)+')').clone();
        $('.paged-content-area').append(new_content);
    }
    

    Hopefully that gets you where you want to be!

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

Sidebar

Related Questions

I am looking for different ways to present data in gridview that has like
We currently have a system that displays a page tabular data on the screen
Looking for an example that: Launches an EXE Waits for the EXE to finish.
Looking for C# class which wraps calls to do the following: read and write
Looking to do a very small, quick 'n dirty side project. I like the
Looking for a Linux application (or Firefox extension) that will allow me to scrape
Looking for suggestions on file system management tools. We have several terabytes of images,
Let's assume that I have following models: class ScoutBook(models.Model): troop = models.ForeignKey('Dictionary', limit_choices_to={'type' :
I am planning to develop a pretty awesome new web app that has a
Background to question: I'm looking to implement a caching system for my website. Currently

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.