Discussion on Simple Ajax Based Pagination

welancers

welancers does not currently provide support for this item.

7 comments found.

it’s really nice, thank you.
but what if it had a “loading” message when loading the next page’s content ( with a good looking Modal )
and another thing is, imagine if the page is so long, when we paginate to the next page, and we’re in the bottom of the page, then it automatically comes to #top.
all of these are in here: http://badoo.com

@behz4d thanks for ur valuable comments. i am looking forward to put these modification in next version immediately. thanks again..

I am curious as to how this can be applied. Does it require the use of a database or can it simply be used to break up content such as a long list. For example, I have a table with 80 items each within a

. It would be nice to be able to break the list down into 8 pages of 10 with pagination.

Yes it uses database. It is actually for database records only, so your records will get split into any number of records you configure in code. Once you configure database setting in config.php file & run index.php, it will automatically import a sample table of records. You can also check the documentation provided with it for more details.

Thanks

Hi,

How can I implement AJAX pagination with setInterval to call the page next every 5 seconds?

Thanks!

Mick

You can do by combining some functions like .each() method of jquery to fetch each links of Pagination and then call .click() in the interval. I think that will work.

Hi, I am building a website with 15 pages (page 1-15). I placed pagination div on each page, so that if you click on 3, 4, then 5 and hit next it should go to 6. i cannot get it to work. Please help me, do i need to create a database in MySQL with page number and url ? It is supposed to be a simple pagination where previous and next will function. Thanks

There is already clear instructions given in the documentation provided with the source code. Please follow it.

any wordpress version?

nopes. never got a chance to look into that.

nopes. This is just for basic php and mysql purpose

Hi, I would like to be able to create a table using the info generated by the loop (for formatting because there will be 6 fields to be displayed for each line) but whenever I try, even though the table looks ok the pagination disappears.

This is what I have tried so far

//check if records exists & display result if(!empty($num_rows_data)) { //run loop to fetch data & print from database table while($row = mysqli_fetch_assoc($result_data)) { echo '<tr><td>'.$row['name'].'</td><td>'.$row['phone_office'].'</td></tr>'; } //display pagination on bottom of list pagination($item_count, $limit, $cur_page, $link, $orderby); }
by
by
by
by
by
by