Questions tagged [pagination]

Pagination is the process of dividing information into discrete pages.

Filter by
Sorted by
Tagged with
3 votes
1 answer
103 views

Searching for news articles in database

The first thing I would like to say is that I do have a fully functioning script, but the script is ugly, and I am wondering if there is a way to optimize it. The script looks to see if I have at ...
Dwight Aaron Potvin's user avatar
1 vote
2 answers
997 views

Critique Requested on PHP Pagination Class

I did most of my PHP coding back with PHP 4, and among the projects I did was a popular pagination class. I've been meaning to bring it up to date with PHP 5 and OOP practices. I've also been working ...
j08691's user avatar
  • 111
3 votes
1 answer
155 views

Paginating a Backbone collection

This is part of a class for paginating a Backbone collection. The paginateTo method is for paginating to a model id. It returns ...
meleyal's user avatar
  • 131
2 votes
1 answer
4k views

PHP Pagination for 1,2,3... vs 1,2,3,4,5,etc

I am having an issue where I am doing a query and it is coming back with about 100 pages, I was hoping to have it come back with 1,2,3...30,31...99,100 instead of 1,2,3,4,5,6,7,8,etc. please see below ...
phpyesphp's user avatar
5 votes
1 answer
863 views

Pagination of repeater

I have some problems in my View.ascx.cs file because I'm reusing my code and modified it based on the situation. For example, when I apply pagination I have different code in all places. I just want ...
NinjaDeveloper's user avatar
1 vote
1 answer
530 views

Pagination Review

I went through lots of tutorial, and almost all of them were quite long, so I came up with my own code: ...
Niket Malik's user avatar
2 votes
1 answer
11k views

My method of php ajax pagination

After a long search of simple php-jquery script from which i can pick the concept from,i gave up.The scripts i found were not very clear so i decided to make my own.This is the repo https://github.com/...
Gandalf's user avatar
  • 123
2 votes
1 answer
409 views

How to optimize the pagination query?

This is completely optimization question, I have a pagination query like this: ...
usii's user avatar
  • 131
3 votes
1 answer
887 views

Implementing pagination with three modules

I am utilizing CodeIgniter's Pagination class to implement pagination in the project. In this project, there are 3 modules: Event, Business and Parts. Each Module has the same "view" for pagination. ...
Vaibhav's user avatar
  • 131
8 votes
2 answers
1k views

Infinite scroll pagination with a Wookmark layout

...
brewern's user avatar
  • 81
0 votes
1 answer
148 views

Pagination and Controller setup

Below is some code that I've been working to simplify, however I feel there is more that can be done. Please note that I did clean up the articles.search method. <...
Alexandre's user avatar
  • 273
1 vote
1 answer
2k views

Infinitely scrolling display of web-scraped search results

My web application is simply supposed to take a search query, run a script on it that returns product information and then post it in an "endless" fashion on a web page, making one page with no ...
David West's user avatar
8 votes
1 answer
281 views

Streaming pages of a different size than a cache's pages

I need to write a service to return objects in pages of size 20. The caching of these objects is done in pages of size 60. To abstract the logic of streaming differently-sized pages, I wrote this <...
Paul Bellora's user avatar
6 votes
3 answers
2k views

Generating pagination links

I recently had an interview for a programming job and after the interview I was then asked to create a function with the following brief: The Task: Relating to pagination links: given a page number, ...
no.'s user avatar
  • 297
2 votes
1 answer
1k views

Reusable pagination

This is a pagination program that works perfectly fine. I want to be able to save this code and reuse it whenever I need it as a method in jQuery (read: ...
Maroshii's user avatar
  • 173
1 vote
1 answer
608 views

MVC pager helper

I've got this MVC pager helper and it's working exactly as expected. Is there a prettier or more performant way to build this out? Also, I know that the StringBuilder might not be the best way. Would ...
Chase Florell's user avatar
1 vote
1 answer
1k views

PHP/MySQL Pagination Class - How can it be improved?

I've re-written my old pagination class into something a little cleaner, and also added PDO support (The prev version was mysqli only). I'd like to clean it up even more if it's possible, does anyone ...
BenOfTheNorth's user avatar
1 vote
2 answers
364 views

Pagination using livequery in jQuery

I have created a piece of code for a live pagination, but I don't like the code. It works it does the job, but I guess I could done it better. ...
Uffo's user avatar
  • 159
8 votes
1 answer
19k views

Paginating large SQL-Results

It feels like pagination is one of the most discussed questions on the web, which always ends up with some quick and dirty hacks on how to paginate. I want to paginate a large result set from an SQL ...
yankee's user avatar
  • 498
7 votes
1 answer
358 views

Collecting friends' wall posts

Originally, I had everything in the base method #read_wall(). I'm not sure what happened with the array, but when I tried: array = result + second + third + fourth....
user2197's user avatar
  • 171
8 votes
2 answers
499 views

Pagination plugin

This plugin is written in jQuery and is made to support the codeigniter framework. It is an ajax powered table pagination plugin designed to provide only that. You should be able to use almost any ...
Hailwood's user avatar
  • 477

1 2
3