Program argumens ( defined values are used just for current example ):
- position: 280 Current position of page-results.
- max: 20 Max display of results per page.
- all: 1000 All results your page contain.
- query: spos=280 Url-Arguments that shoud be attached/displayed with pagination.
- param: spos Url-Argument that is used for defining current position of page-results.
...
How it look & work:
Usage example ( JS ):
//
var fd = new FormData();
//
fd.append("generate",true);
fd.append("position",280);
fd.append("max",20);
fd.append("all",1000);
fd.append("query","");
fd.append("param","spos");
//
fetch("https://wss.grandekos.com/services/pagination/index.php",{"method":"POST","body":fd,}).then(function(r) {return r.json();}).then(function(json) {
console.info("pagination response",json);
//
document.querySelector("#yourPaginationField").innerHTML = json.data; // Attach html to document.
});
Usage example ( URL )
get your pagination example