#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    2
    Rep Power
    0

    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:
    1. 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.

    1. The sorting of the view of vacancies also does not maintain the search criteria.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Mar 2008
    Posts
    1,928
    Rep Power
    378
    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/
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    2
    Rep Power
    0
    Thank you indeed isotope.metafizzy.co/ has perfect examples for sorting
  6. #4
  7. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Sep 2002
    Location
    Seattle, U.S.A.
    Posts
    712
    Rep Power
    12
    Originally Posted by zama
    Thank you indeed isotope.metafizzy.co/ has perfect examples for sorting
    Another js plugin for this is tablesorter, which also has plugins for pagination.

    http://tablesorter.com/docs/

IMN logo majestic logo threadwatch logo seochat tools logo