Some way to run an HTML filter in Django with dynamic data

0

I saw the solution to the question "how to make the search engine of my application in django"; however, I have tried to use a html filter of those that filter a table in the browser and are erasing data until they leave only the data that looks like the criteria that was entered in the text box that is to search. but the Jquery does not work with the dynamic data brought to the table from a database. the question is some way to solve the filtering in the browser since all the data is displayed, or the idea is illogical and can only be done from the views. some trick ?? well, I appreciate any answer that clarifies the doubt. thank you!!!

    
asked by Max gonzalez 07.08.2018 в 23:47
source

2 answers

0

if you can do it with html, you can do it with javascript or with jquery

here is an example where you can see some code

link

greetings

    
answered by 08.08.2018 в 06:26
0

Being dynamic you can not do it with filters (templatetags) the best option is to use AJAX, to make calls to a function or a Python view and then render from the AJAX response the html

    
answered by 10.08.2018 в 15:48