Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only shows 1 entry #19

Open
julianfuerderer opened this issue Nov 9, 2011 · 6 comments
Open

Only shows 1 entry #19

julianfuerderer opened this issue Nov 9, 2011 · 6 comments

Comments

@julianfuerderer
Copy link

Hi,

i am new in using jquery_pagination, and have a problem.
I used the example code from the download-package...
Here is my pagination-javascript:

function pageselectCallback(page_index, jq)
{
var new_content = jQuery('#hiddenresult div.item:eq('+page_index+')').clone();
$('#Searchresult').empty().append(new_content);
return false;
}

function initPagination()
{
// count entries inside the hidden content
var num_entries = jQuery('#hiddenresult div.item').length;
// Create content inside pagination element
$("#test").pagination(num_entries, {
items_per_page:2,
callback: pageselectCallback,
num_display_entries: 9,
load_first_page: true,
next_show_always: false
});
}

$(document).ready(function()
{
initPagination();
});

My Problem:
Between the

tag I put 4
, and by alerting "num_entries", it gives me the corrent numer 4.

But there i only 1 item per page...and i set items_per_page:2....

What is the problem ?

Please help me....

@LadyLoomis
Copy link

I am having the same issue. Anyword on this?

@julianfuerderer
Copy link
Author

Hi,

sorry, got no reply .....

Date: Mon, 14 Nov 2011 05:49:19 -0800
From: [email protected]
To: [email protected]
Subject: Re: [jquery_pagination] Only shows 1 entry (#19)

I am having the same issue. Anyword on this?


Reply to this email directly or view it on GitHub:
#19 (comment)

@LadyLoomis
Copy link

Have you found a solution out yet on your own?

@julianfuerderer
Copy link
Author

Hi,

no, found no solution for me...
I am using now http://plugins.jquery.com/project/jPaginate

Date: Mon, 14 Nov 2011 05:52:44 -0800
From: [email protected]
To: [email protected]
Subject: Re: [jquery_pagination] Only shows 1 entry (#19)

Have you found a solution out yet on your own?


Reply to this email directly or view it on GitHub:
#19 (comment)

@LadyLoomis
Copy link

Thanks. Guess I will have to change it. To bad the developer couldn't get back to you. He just lost 2 users.

@iurisilvio
Copy link

I answered it here: #18 (comment)

It works only because items_per_page=1 in the example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants