Pagination is the process of dividing information into discrete pages.

learn more… | top users | synonyms

1
vote
2answers
38 views

Getting paginated data from ajax call and putting the data on the page

At the moment, it gets the first page worth of data and then each subsequent page when the user scrolls down to the bottom of the page. My JavaScript/jQuery level is fairly weak, however I have ...
3
votes
0answers
28 views

Combining pagination and non query grouping in Slick 3.0

I have the following tables: val postTable = TableQuery[Posts] val postTagTable = TableQuery[PostTags] val tagTable = TableQuery[Tags] One post can have multiple ...
1
vote
0answers
22 views

Searching through rows of paged grid until row is found or there are no more pages

I have a GWT Grid, using a pager, so pages of the grid (table) can be any number of elements long. I'm looking to iterate over every row of each page until I find a row with the matching text in the ...
10
votes
1answer
61 views

Creating a page number array for pagination

I have written a small function to generate an array of page numbers for displaying a pagination. The inputs to the function is an active page number p, and the max page number. The function will ...
5
votes
1answer
244 views

Pagination implementation for a blog system

Last night I was working on a project that I've embarked upon as a learning exercise. I decided to add a pagination feature to my blog system. I made an attempt at it and got close... but I decided to ...
4
votes
3answers
51 views

Page Enum with overridden methods for the first and last members

I am managing the changing of views in an Android app using this enum and associated methods. I am particularly interested in the Page enum's use of overriding ...
1
vote
1answer
144 views

Node.js Paging with Mongodb

I want to create variable paging on Node.js with MongoDB. I use MongoJS on client side create a request: ...
1
vote
0answers
49 views

Pagination with static data

I am using following code to implement pagination functionality. All items are rendering on page load and li elements greater than page set are hidden with CSS. I ...
2
votes
2answers
242 views

Applying limit and offset to an array

I'm refactoring an old gateway and came across the following method: ...
2
votes
0answers
74 views

Fetching photos and tweets related to selected publications

1) Postgresql 2) User has_many :reports 3) Report belongs_to :user 3) Report belongs_to :publication 4) Publication has_many :reports 4) Publication scope :photos, -> ...
5
votes
1answer
128 views

Related links for WordPress posts

I have written the following class which is part of a pagination system in Wordpress. The class works as expected and also works as expected when used in the system. Just as background, the class ...
1
vote
0answers
103 views

Paginating a long unordered list of items

I'm working in an application where there's a long unordered list of items that have to be paginated. New items are added to the list regularly, and the items come from a database. The only control I ...
1
vote
0answers
33 views

Custom forum paginator for navigating through topics

I've made my own pagination service for my forum that I'm working on. I'm quite happy how it turned out but it feels a bit rough around the edges so I would like to know how I can shorten this code ...
2
votes
0answers
125 views

Resource that use two different services and query with pagination when resolved

I'm learning Angular and I don't like my current approach. The current controller uses first Geolocation service and when ...
1
vote
0answers
205 views

Pagination handlebars helper

I've build a handlebars helper that takes n total pages and currentPage and returns the HTML for the page number links, skipping ...
4
votes
1answer
149 views

Optimizing pagination of HTML tables

I'd like to share my implementation to you to confirm if it's a correct way to solve my problem. I have a list of products which have an attributes table and a description table (both in html_encoded ...
1
vote
0answers
102 views

Handling pagination on a particular page

I have a Java script that handles pagination on a particular page by using a jQuery pagination plugin. Is there any way to improve the code? ...
11
votes
4answers
460 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 ...
1
vote
0answers
172 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
120 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
195 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
103 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
676 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
88 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
112 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
645 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 ...
3
votes
1answer
125 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 ...
1
vote
1answer
511 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
292 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 ...
0
votes
1answer
314 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
8k 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 ...
3
votes
1answer
675 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. ...
8
votes
2answers
899 views
0
votes
1answer
124 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. ...
8
votes
1answer
220 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
622 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 ...
2
votes
1answer
786 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: ...
1
vote
1answer
519 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 ...
0
votes
1answer
965 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 ...
6
votes
1answer
10k 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 ...
7
votes
1answer
346 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: ...
6
votes
2answers
351 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 ...