superRaytin / paginationjs

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

Add a parameter for a custom AJAX function #88

Closed cw0102 closed 5 years ago

cw0102 commented 5 years ago

Adding a parameter for a custom ajax function to use as a drop-in replacement to $.ajax(). This is necessarily in some custom cases where the data is retrieved in a way that is not conducive to making a request directly through $.ajax(), i.e. a websocket or a caching mechanism. This adds a lot more potential flexibility to the AJAX functionality of the library for relatively little cost.