show list as per last ajax request

show list as per last ajax request

balvirbalvir Posts: 5Questions: 4Answers: 0

Hi ,

I using data tables for show list of posts, by click on each row show the detail of selected post with ajax( use custom ajax function ) . On post detail page there is button for go back to list again , click on that button ajax run which show posts list (datatables) again. Now problem is if on staring I sort or filter on list and open any post then click on back button then show list but all sorting and filtering removed but just only show default list

I want that on button click it shows the data based on last ajax requested url. so order and filter keep same.

This discussion has been closed.