Pagination is the process of dividing information into discrete pages.

learn more… | top users | synonyms

10
votes
4answers
445 views

Cutting it to Pages

I was working on representing a large List of information on a number of different pages, and a colleague of mine suggested that I try to make a generic method for ...
0
votes
0answers
39 views

Laravel Pagination: a new one adapted from an old Dreamweaver extension

I'm new to Laravel and I'm trying to port the most important old-procedural-code snippets and libraries I collect in some years I missed a nice Pagination I had in an old Dreamweaver extension and I ...
3
votes
2answers
52 views

Pagination filtering

I want to check if there is page variable (in URL) and if it is, if it's correct - it cannot be number 1 because this is default page and it should be valid int ...
2
votes
0answers
66 views

Pagination object oriented

This a little pagination script that I am writing "Object Oriented" and I have no idea how to set the current page equal to total page, if the current page is greater. I also would really like it if ...
1
vote
0answers
63 views

Pagination that doesn't rely on a database

I've created a pagination class in PHP. I've made it so it doesn't rely upon a database. Am I doing this correctly? is there anything you can suggest I improve? ...
5
votes
2answers
162 views

Adding a bulk of items in the middle of a sparse array

I'd like to add a bulk of items into a sparse array, starting at a certain index. I came along this requirement in order to accomplish client side pagination while not retrieving all data from server ...
3
votes
1answer
66 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 ...
1
vote
0answers
70 views

Paginated Backbone.Collection subclass

This is a subclass of Backbone.Collection with a method fetchNextPage that returns a Q promise. To find out the next page's ...
1
vote
2answers
474 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 ...
1
vote
1answer
256 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 ...
5
votes
1answer
194 views

optimize the pagination of repeater?

Hi I have some problem in my View.ascx.cs because I'm using reuse my code and modified it based on the situation for example I when I apply pagination I have efferent code in all place just I wan to ...
0
votes
1answer
215 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: ...
1
vote
1answer
7k 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 ...
2
votes
1answer
528 views

How to make this PHP code more object oriented and less scripted

I am utilizing CodeIgniter's Pagination Class to implement pagination in the project. In this project, there are 3 modules: Event,Business & Parts. Each Module has same "view" for pagination. I ...
8
votes
2answers
555 views
8
votes
1answer
215 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 ...
4
votes
3answers
519 views

Pagination Function - Can this be shortened or approached differently?

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 ...
0
votes
1answer
881 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 ...
4
votes
1answer
7k views

Is there a better way to paginate large SQL-Results?

It feels like pagination is one of the most discussed questions on the web, which always ends up with some quick&dirty hacks on how to paginate. I want to paginate a large result set from an SQL ...
6
votes
2answers
324 views

Is there a better way to write this 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 ...