Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

Strange navigation results.... #32

Open
cderees opened this issue Feb 16, 2014 · 2 comments
Open

Strange navigation results.... #32

cderees opened this issue Feb 16, 2014 · 2 comments

Comments

@cderees
Copy link

cderees commented Feb 16, 2014

I am calling in a json file of 83 records when the page it appears as 1 of 40 , no ideal where 40 is coming from. I click last and it appears correctly ( 83 of 83 ). When I click previous it appears as 1 of 40. When I click first it appears correctly ( 1 or 83 ). then after click next after clicking first it appears as 2 of 40.
Could you help me understand what is going wrong please?

@beneverard
Copy link
Owner

Can you show some code?

@cderees
Copy link
Author

cderees commented Feb 16, 2014

I am getting the record qty in the document ready.

$.getJSON("Connections/fetchCustomer.php", function(data) {
var RecordCount = data.result.length;

Then I am trying to the change this entry....

by doing this....
$( "#maxRecs" ).attr( "data-max-page", RecordCount );

the problem I have is I only have 9 records, however when I click last or first it goes the hardcoded 83 value.

Thank you in advance if you are able to assist.

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

No branches or pull requests

2 participants