input filter field already-filled through incoming URL

input filter field already-filled through incoming URL

Christian BonatoChristian Bonato Posts: 18Questions: 0Answers: 0
edited March 2011 in General
Hi Allan,


I would like to be able to load a page with results already filtered based on a var that I'm going to bring in through the URL, using PHP's $_GET[]...

Is it feasible ?

To load a Datatable already filtered, with the search string already in the input field ?

Thanks,
Christian

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Hi Christian,

    Yes you can use oSearch to apply an initial filter: http://datatables.net/usage/options#oSearch . Just put your GET variable into the sSearch property.

    Allan
  • Christian BonatoChristian Bonato Posts: 18Questions: 0Answers: 0
    Allan, you're great.

    I almost forgot how complete was DataTables and how clear the online manual is.
    I should have checked first.
    Thanks for taking the time to reply.

    Best regards,
    Christian
This discussion has been closed.