Moving the search to a page separate from the table

Moving the search to a page separate from the table

tautologicaltautological Posts: 1Questions: 1Answers: 0

Hello.

I would like to implement a search bar on another page separate from the database page. When the person queries by typing in a search and presses enter, the results will open on another page with the database with the terms queried and displaying the results.

How do I achieve this?

Answers

  • allanallan Posts: 63,352Questions: 1Answers: 10,443 Site admin

    It depends how you are populating your DataTable.

    1. If Ajax loaded you could pass the search query in the URL parameters and then feed that into search.
    2. If it is DOM sourced you'd need to apply the WHERE condition to whatever is outputting the HTML for the table.

    Allan

This discussion has been closed.