Wrong number of pages displayed in the footer
Wrong number of pages displayed in the footer
talamasca
Posts: 3Questions: 0Answers: 0
Strange haven't you saw this in the last version.
doing a serverside pagination
[code]489 var iPages = Math.ceil((oSettings.fnRecordsDisplay()) / oSettings._iDisplayLength);[/code]
after looking at the returned vars from json and looking over and over again, debuging the values I came to this
it has to divide the value of total number of records from json to the display length
[code]var iPages = Math.ceil((oSettings.fnRecordsTotal()) / oSettings._iDisplayLength);[/code]
please verify
doing a serverside pagination
[code]489 var iPages = Math.ceil((oSettings.fnRecordsDisplay()) / oSettings._iDisplayLength);[/code]
after looking at the returned vars from json and looking over and over again, debuging the values I came to this
it has to divide the value of total number of records from json to the display length
[code]var iPages = Math.ceil((oSettings.fnRecordsTotal()) / oSettings._iDisplayLength);[/code]
please verify
This discussion has been closed.
Replies
Can you post an example showing the error please. From playing around with my examples and the unit tests, it seems to be okay. Although I could be missing something.
Thanks,
Allan
thanks anyway.
I got another problem now.
i have some complicated structure of the site
i got one page that has jqueryui tabs in it witch contains 3 different tables .
and there are separate pages for every table itself.
so the datatable resize columns and table in the separate pages, but it doesn't do it in the page with tabs.
it does it only on the focused tab. how should i fix this?
Allan
and it WORKS!
my code only for those tabs is too big like 243 lines
and there is functionality for
[code]$.loadImages, $.ajaxStart(), $.ajaxStop(), and even $.imageScale [/code]
if you want i can send you code by email.
thanks a lot mate.