November 12th, 2012, 03:17 AM
Search, Sort and paginate
Please help im working on a search i have records in my database my search is working.
There are 2 things that currently do not function:
- When clicking the pagination link after a specific search (location; business unit; date submitted), the results change to include all vacancies in the database and does not maintain the search criteria.
- The sorting of the view of vacancies also does not maintain the search criteria.
November 12th, 2012, 06:02 AM
There are lots of ways of handling pagination. For smaller datasets (particularly those that hold readily-available data like football results), I prefer to return the entire dataset and let the client handle filtering, sorting, and pagination.
See for instance the fantastic example at isotope.metafizzy.co/
November 14th, 2012, 08:03 AM
Thank you indeed isotope.metafizzy.co/ has perfect examples for sorting
November 14th, 2012, 11:23 AM