Tuesday, April 11, 2017

is it possible to regenerate pagination after ajax update?

Is it possible to regenerate pagnation after I have made ajax call that changes number of pages that would be returned?

this is how I call it in the blade right now

$comments->links()

Then I allow user to appove/unapprove/mark as spam etc using ajax and after I made ajax call I would like to regenerate pagination without having to reload the page, has anyone done it and how?



via maxit

Advertisement