superRaytin / paginationjs

A jQuery plugin to provide simple yet fully customisable pagination.
http://pagination.js.org
MIT License
912 stars 659 forks source link

pageNumber doesn't work when i fetch data from api #63

Closed SergiOnGit closed 5 years ago

SergiOnGit commented 6 years ago

That must be fixed and this plugin will be the best JQuery pagination plugin!

fabiofdsantos commented 6 years ago

@SergiOnGit, What do you mean by it doesn't works? Could you please provide an example?

alem01 commented 6 years ago

If he fetch data using ajax /json it doesnt give him the pagination. mine is showing all the records. It doesnt work sir.

JesusADS commented 4 years ago

Why is this closed? I'm having the same problem. The documentations says:

By default, pageNumber and pageSize will be sent.

but in practice is not true, i have this:

$.ajax({
    headers : {
        //CUSTOM HEADERS
    },
    method : 'GET',
    url: 'https://my/api/url',
    success: function(response) {
        done(response.data);
    }
});

and the request is to: https://my/api/url without any parameters, I need pageNumber and pageSize to be sent.